[Samba] subshares ?

John H Terpstra jht at samba.org
Tue Jun 3 16:35:03 GMT 2003

On Tue, 3 Jun 2003, ipguy wrote:

> hi all...
> i have what seems a simple question regarding subshares, for lack of a better term...
> say i have a share with specific user/group permissions and a directory inside the share that i would like to add different user/group permissions...
> this is an example of my smb.conf file to illustrate
> [driveA]
> path = /samba/driveA
> browseable = Yes
> writeable = Yes
> valid users = PDC+groupA
> force group = PDC+groupA
> [driveB]
> path = /samba/driveA/driveB
> browseable = No
> writeable = Yes
> valid users = PDC+groupB
> force group = PDC+groupB
> inherit permissions = No
> shouldn't this restrict groupA users from accessing the subshare called
> "driveB" located inside the share "/samba/driveA" ??

driveB is a directory in /samba/driveA from the perspective of the driveA
share. IT is NOT a sub-share, there is no such thing in the SMB/CIFS
protocol specification.

That means that users of the share called driveA will be able to access
the contents of the directory driveB as permitted by the permissions on
the driveBdirectory.

- John T.
John H Terpstra
Email: jht at samba.org

More information about the samba mailing list