Controlling access to sub-folders with Samba

2 posts / 0 new
Last post
#1 Tue, 11/12/2013 - 07:41
alexnicol

Controlling access to sub-folders with Samba

Afternoon

I have successfully shared separate folders using Webmin GUI for samba. My question is:-

(Please see attached Image)

I tried sharing the individual sub folders, which works fine, but when I then access the Shared folder at the top I can access all three subfolders.

I would like to Share the above folder so that User1 can see Shared and Sub 1, User2 can See Shared, Sub 1 and Sub 2, and User 3 to see Shared, Sub 1 and Sub 3

Is such a thing possible and if so can someone point me towards a guide please?

Kind Regards.

Alex

Tue, 11/19/2013 - 06:24
Locutus

You wouldn't be able to do this with Samba alone, since when a user has access to a share, this applies to all its subfolders as well.

But you can work with Linux file system permissions, i.e. assign owner users and groups and permissions appropriately to match your desired access scheme. In addition to Samba access, the local file system permissions are also heeded when Samba decides what a user can or cannot do.

(In this case, your users would see that there IS another folder, but they wouldn't be able to look into it or do anything with it.)

Topic locked