Solved

Samba public share with some private folders inside

Posted on 2013-01-30
5
361 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
  • 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Squid Connection Pools 3 84
Iptables and mirroring ports 4 89
Understanding Security Log Events 2 63
Need network only 1 user? 10 72
A brief overview to explain gateways, default gateways and static routes OR NO - you CANNOT have two default gateways on the same server, PC or other Windows-based network device. In simple terms a gateway is formed when a computer such as a serv…
Enterprise networks where VoIP phones have been deployed frequently use port configurations that allow both a computer and an IP phone to be plugged into the same switch port but use different VLANs. On Cisco equipment I'm referring to the "native V…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

821 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