Permissions

Lars O. Grobe grobe at gmx.net
Tue Oct 16 02:33:01 GMT 2001


Hi!

chown    .contract   /path/to/share/
chown -R .contract   /path/to/share/quite_open_files/
chown -R .validgroup /path/to/share/all_my_secrets/

So only validgroup is able to acces the folder all_my_secrets. Make all
members of validgroup to be members of contract, too, and they will have
access to folders of validgroups as well as contract.

You might do this with acls, but unix permissions are ok for this task.

CU, Lars.

-- 

"Kok Wei, Koh" wrote:
> 
> I'm using Samba to allow Windows machines to access files in a Linux box.
> 
> I understand that you can assign valid users to a samba share with the
> following:
> 
> [share-name]
>     path = /path/to/share
>     valid=users = @validgroup
>     writable = yes
>     browsable = yes
>     blah blah blah ...
> 
> I have another group in my Linux machine called 'contract' which I made the
> following changes to the above share:
> 
> [share-name]
>     path = /path/to/share
>     valid=users = @validgroup @contract
>     writable = yes
>     browsable = yes
>     blah blah blah ...
> 
> The problem is I would only want users in the group 'contract' to only able
> to access certain directories in /path/to/share unlike 'validgroup' which
> is able to access to everything in /path/to/share. Is this possible with Samba?
> 
> --
> Kok Wei, Koh




More information about the samba-ntdom mailing list