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 permission rewrite after user changing

CIFS/SMB network sharing.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
monty
NewUser
NewUser
Posts: 13
Joined: 02 Dec 2014 19:57
Status: Offline

Share permission rewrite after user changing

Post by monty »

Dear All,


I would like to make a share which can be:
-read/write by the owner (user1)
-only read by the group (group1)
-can't read by others

I make the folder named share with permissions in ssh console:
chown owner1:group1 ./share
chmod 750 ./share

Then I check it with ls -l, and it is perfect.
But after I modify a user on the web interface, and push the apply button, it rewrites the group to the default user1, so ls -l:
drwxr-x--- user1 user1 share

And beacuse of this problem I had to make a much complicated solution for this kind of permission rule.

Could somebody please tell me why this strange behavior?

thank you

monty
NewUser
NewUser
Posts: 13
Joined: 02 Dec 2014 19:57
Status: Offline

Re: Share permission rewrite after user changing

Post by monty »

It is a total confusion. I realized that the shared folder's group name is fixed to the folder's owner's primary group....
Can it turn off or fix somehow?

noclaf
experienced User
experienced User
Posts: 116
Joined: 08 Dec 2013 12:37
Status: Offline

Re: Share permission rewrite after user changing

Post by noclaf »

by using chown you can change owner group
http://en.wikipedia.org/wiki/Chown

monty
NewUser
NewUser
Posts: 13
Joined: 02 Dec 2014 19:57
Status: Offline

Re: Share permission rewrite after user changing

Post by monty »

Yes, thank you very much, yes definitely I can change. Until I want to change a user via the web interface...
As I mentioned above, even if I use chown, after I modify a user and apply changings, nas4free write back the owner and the group (the shared folder group will be the shared owner's primary group of the folder)

monty
NewUser
NewUser
Posts: 13
Joined: 02 Dec 2014 19:57
Status: Offline

Re: Share permission rewrite after user changing

Post by monty »

I find the solution:
just leave the homedir option empty...

if you fill the homedir, after you change/add a user, the webgui make all user settings, included the writeback the homedir permission to the owner and the owner's primary group...

Post Reply

Return to “CIFS/SMB (Samba)”