LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-13-2011, 05:12 AM   #1
golden_boy615
Member
 
Registered: Dec 2008
Distribution: Ubuntu Fedora
Posts: 445

Rep: Reputation: 17
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.
 
Old 06-14-2011, 11:48 AM   #2
opnsrc
LQ Newbie
 
Registered: Dec 2005
Posts: 28

Rep: Reputation: 1
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
 
Old 12-14-2011, 05:43 AM   #3
golden_boy615
Member
 
Registered: Dec 2008
Distribution: Ubuntu Fedora
Posts: 445

Original Poster
Rep: Reputation: 17
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?
 
Old 12-14-2011, 06:26 AM   #4
golden_boy615
Member
 
Registered: Dec 2008
Distribution: Ubuntu Fedora
Posts: 445

Original Poster
Rep: Reputation: 17
as I understood setfacl affect local filesystem permission as test not shared folder permission status on network what do I miss?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Permission denied on Samba share Peter Aleksic *BSD 5 03-20-2009 09:18 AM
Samba Share Server Permission Help carlosinfl Linux - Server 6 07-16-2008 08:01 AM
Samba Printer Share = no permission SlowCoder Linux - Newbie 7 07-09-2007 09:23 PM
Samba - dont have permission to browse samba share. Scrag Linux - Software 4 11-28-2006 02:42 AM
Can't get RW permission on a mounted samba share darkangel12613 Linux - Software 6 08-31-2006 08:04 AM


All times are GMT -5. The time now is 08:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration