Page 1 of 1

Share permission rewrite after user changing

Posted: 09 Jan 2015 15:08
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

Re: Share permission rewrite after user changing

Posted: 10 Jan 2015 00:13
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?

Re: Share permission rewrite after user changing

Posted: 10 Jan 2015 00:48
by noclaf
by using chown you can change owner group
http://en.wikipedia.org/wiki/Chown

Re: Share permission rewrite after user changing

Posted: 10 Jan 2015 18:37
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)

Re: Share permission rewrite after user changing

Posted: 10 Jan 2015 19:45
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...