Link to home
Start Free TrialLog in
Avatar of SStory
SStoryFlag for United States of America

asked on

Samba public share with some private folders inside

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?
Avatar of ThomasMcA2
ThomasMcA2

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
Avatar of SStory

ASKER

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.
ASKER CERTIFIED SOLUTION
Avatar of ThomasMcA2
ThomasMcA2

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of SStory

ASKER

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?
Avatar of SStory

ASKER

setfacl in conjunction with the sticky bit to force the group to that user does just want I wanted.