Have permission but can't access folder
I have a user marc in the group marc. There's a media directory with a subdirectory marc that the user can access. There are also two mounted usb disks there.
I have a second user sonarr who is also in the group marc. But this user can't access the directory /media/marc even though all permissions seem to be correct. Here is the console output: Code:
sonarr@media-pc:/media$ cd marc |
Quote:
Look at the mounted fs to see what IT's permissions are, they often are -rwx------ See also the mount options for FAT filesystems, especially the fmask and dmask ones. The problem is that a vfat filesystem does NOT have the concept of fileowner or group, so the mount program imposes a mask ON it, which often is "only for the mounting UID". |
Thanks for the quick reply
Quote:
The marc directory itself is not a mounted usb drive. There are two drives mounted as subdirectories in there. One is a ext4 filesystem and the other ntfs. I'm not sure how to check the things you mentioned. But the first step would be getting access to the marc folder before seeing if I can access the drives from there. |
I noticed there is a + at the end of the permissions for the "marc" directory. Thus, ACL permissions could be the issue. Try 'getfacl marc'. See here for more information https://serverfault.com/questions/22...ions-from-ls-l
|
Quote:
When I run the command I get: Code:
marc@media-pc:/media$ getfacl marc Any user has rwx, any group has --- and any other has rwx? That makes no sense right... |
Honestly, I do not use ACLs myself for permissions, but, try the following:
Code:
setfacl -Rm g:marc:rwx marc Code:
setfacl -b marc |
All times are GMT -5. The time now is 06:25 AM. |