This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

Share settings not working!

CIFS/SMB network sharing.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
captainkent
NewUser
NewUser
Posts: 8
Joined: 04 Nov 2016 19:44
Status: Offline

Share settings not working!

Post by captainkent »

I have a folder called Library/ which has another folder in it called Movies/.

I want a user called bob and a group called library, to be able to access this folder on any PC in my network.

I made a user called bob.
Image

I made a group called library.
Image

I set the folder Library/ to be owned by bob and the group called library.

Code: Select all

chown -R bob:library Library/
Then I set the file to be read, write and executed by its owner and group (not by everyone else).

Code: Select all

chmod -R ug+rwx Library/
With this set-up, I can't access the directory on my PC. I can only access it when I do the following.

Code: Select all

chmod -R a+rwx Library/
What am I doing wrong?

EDIT:

For some magical reason I tried

Code: Select all

chmod -R ug+rwx Library/
again and now it worked. No idea why it wouldn't work the first time!

EDIT2:

If I remove owner permissions, but keep group permissions (bob is a part of library, which owns the Library/ directory), why cant I continue to access my files?

JacobWPS
Status: Offline

Re: Share settings not working!

Post by JacobWPS »

Because only the owner permissions apply to the owner user, in other words, by executing u-rwx you are denying bob access which takes precedence over all other rights. Every user is granted the rights of the most specific category applicable to them, with the following order of precedence (specificity): owner then group then world.

Post Reply

Return to “CIFS/SMB (Samba)”