Solved

Samba public share with some private folders inside

Posted on 2013-01-30
5
369 Views
Last Modified: 2013-02-04
Given a Samba share that anyone can scan to, how can I setup private folders within that share folder that only the given user and someone in his group can scan to, i.e. rw over the network?
0
Comment
Question by:SStory
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 14

Expert Comment

by:ThomasMcA2
ID: 38835900
Can the private folder be moved so that it is a sibling of the current parent? Then you could create a new share for the moved folder. So instead of this:

Folder1
.....Folder2

...you would have this:

Folder1
Folder2
0
 
LVL 25

Author Comment

by:SStory
ID: 38835968
I could do it as a ton of shares. I was hoping to avoid this and have one share that they can all scan too, but private folders within that, that limit who can get to those docs. Is this not possible.

I do know how to make lots of shares, but I know this could result in 20 or more and I'd prefer to not do it that way.
0
 
LVL 14

Accepted Solution

by:
ThomasMcA2 earned 500 total points
ID: 38836472
The subfolder permissions can be specified using acl command setfacl for the right group/person.

use getfacl to check/display the applied permissions.
0
 
LVL 25

Author Comment

by:SStory
ID: 38836717
Thanks!

Is there any way other than acl?

I don't understand why it won't work by just setting the owner/group permissions and world to 0, but it does not. Can Samba not allow this?
0
 
LVL 25

Author Closing Comment

by:SStory
ID: 38851497
setfacl in conjunction with the sticky bit to force the group to that user does just want I wanted.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A common practice in small networks is making file sharing easy which works extremely well when intra-network security is not an issue. In essence, everyone, that is "Everyone", is given access to all of the shared files - often the entire C: drive …
The Need In an Active Directory enviroment, the PDC emulator provide time synchronization for the domain. This is important since Active Directory uses Kerberos for authentication.  By default, if the time difference between systems is off by more …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question