LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to get different permission to subdirectory of a share in samba (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-get-different-permission-to-subdirectory-of-a-share-in-samba-886007/)

golden_boy615 06-13-2011 04:12 AM

how to get different permission to subdirectory of a share in samba
 
hello
I would like to know how can I get permission to subdirectories of a share other than what main share has. I do not want them to have same share I mean for example I share "sharetest" and it has full access for A and B and C groups but "sharetest/foo1" has read only access for A group and "sharetest/foo2" has read only access for B group and "sharetest/foo3" has read only access for all of them.

thanks for any solution.

opnsrc 06-14-2011 10:48 AM

I use the following:

setfacl -m g:A:rwx sharetest
setfacl -m g:B:rwx sharetest
setfacl -m g:C:rwx sharetest

setfacl -m g:A:r sharetest/foo1
setfacl -m g:B:r sharetest/foo2

setfacl -m g:A:r sharetest/foo3
setfacl -m g:B:r sharetest/foo3
setfacl -m g:C:r sharetest/foo3

You can review those ACLs with getfacl

HTH,
Ryan Ivey
Linux Administrator
Initial Source Solutions, LLC
www.initialss.com

golden_boy615 12-14-2011 04:43 AM

I did that but it did not work. I mean I set acl and saw it wit getfacl command and it was set but I can not access to those folders that I want and can not limit those folders that I want .
what more should I do?

golden_boy615 12-14-2011 05:26 AM

as I understood setfacl affect local filesystem permission as test not shared folder permission status on network what do I miss?


All times are GMT -5. The time now is 01:02 PM.