Permission denied on files in a directory on a CIFS-mounted Windows share in Linux
39
Further digging revealed a noperm
parameter that can be used on the mount command:
sudo mount.cifs //HPSERVER/linux-bup/ /home/maxg/bmsOnSrvr --v -o user=linux,pass=****,noperm
result now:
# [2018-04-17 21:45] maxg@rpi32 ~/bmsOnSrvr $
la
total 5
drwxr-xr-x 2 root root 0 Apr 17 21:04 .
drwxr-xr-x 8 maxg maxg 4096 Apr 17 19:15 ..
-rwxr-xr-x 1 root root 4 Apr 17 21:04 deleteme.txt
-rwxr-xr-x 1 root root 0 Apr 8 11:50 desktop.ini
drwxr-xr-x 2 root root 0 Apr 17 19:15 rPi32
# [2018-04-17 21:45] maxg@rpi32 ~/bmsOnSrvr $
echo kjskjs>max.txt
# [2018-04-17 21:45] maxg@rpi32 ~/bmsOnSrvr $
rm desktop.ini
# [2018-04-17 21:45] maxg@rpi32 ~/bmsOnSrvr $
la
total 5
drwxr-xr-x 2 root root 0 Apr 17 2018 .
drwxr-xr-x 8 maxg maxg 4096 Apr 17 19:15 ..
-rwxr-xr-x 1 root root 4 Apr 17 21:04 deleteme.txt
-rwxr-xr-x 1 root root 7 Apr 17 21:45 max.txt
drwxr-xr-x 2 root root 0 Apr 17 19:15 rPi32
[edit] However, it looks like this is the proper way of doing it:
sudo mount.cifs //HPSERVER/linux-bup/ /home/maxg/bmsOnSrvr --v -o user=linux,pass=****,uid=1001,gid=1001
result now:
# [2018-04-17 21:59] maxg@rpi32 ~/bmsOnSrvr $
la
total 4
drwxr-xr-x 2 maxg maxg 0 Apr 17 21:50 .
drwxr-xr-x 8 maxg maxg 4096 Apr 17 19:15 ..
drwxr-xr-x 2 maxg maxg 0 Apr 17 19:15 rPi32
# [2018-04-17 21:59] maxg@rpi32 ~/bmsOnSrvr $
echo crap>crap.txt
# [2018-04-17 21:59] maxg@rpi32 ~/bmsOnSrvr $
la
total 5
drwxr-xr-x 2 maxg maxg 0 Apr 17 22:00 .
drwxr-xr-x 8 maxg maxg 4096 Apr 17 19:15 ..
-rwxr-xr-x 1 maxg maxg 5 Apr 17 21:59 crap.txt
drwxr-xr-x 2 maxg maxg 0 Apr 17 19:15 rPi32
Author by
user1222462
Updated on September 18, 2022Comments
-
user1222462 over 1 year
I am trying to install the store front directly to Azure from github. One of the required fields on the installation form is Virto Commerce Api Hmac App Id. I think the generation of this code requires the 'Use Api' role in the user manager.
My problem is that the Available Roles list is empty in my Azure installation of the platform manager.
How do I populate this list with the built in Roles ?
-
Rob over 4 yearsuid and gid likely need to come from
id -u <username>
andid -g <username>
. Or at least that's what I did based on this answer, and it worked :) .