Hi Martin,
On Tue, Jan 07, 2003 at 11:14:35PM +0100, Martin Peter Hanke wrote:
> Hi everybody,
>
> I assume this is no real problem but only some setup thing but I don't
> get through it.
> How can I mount only shares that a specified group is supposed to see?
>
> Meaning if I have somebody member of grp1 I want him to see dir A.
> If some one is member of grp2 I want him to see dir B.
>
> So a section of our company can have his own shared directory for their
> own..
>
> At the moment I can see directories of all sections. ;-(
>
> Any help is appreciated,
>
> Martin
>
> --
It might that the "valid users" option in smb.conf is your friend.
>From man smb.conf:
valid users (S)
This is a list of users that should be allowed to login to this service.
Names starting with
'@', '+' and '&' are interpreted using the same rules as described
in the invalid users
parameter.
If this is empty (the default) then any user can login. If a
username is in both this
list and the invalid users list then access is denied for that user.
The current servicename is substituted for %S . This is useful in the
[homes] section.
See also invalid users
Default: No valid users list (anyone can login)
Example: valid users = greg, @pcusers
IIRC there was a discussion recently on this list about the interaction
of this option with the "write list" and "read list" parameters, so you
should perhaps also play with this ones.
HTH,
Wolfi
--
--
To unsubscribe from this list go to the following URL and read the
instructions: http://lists.samba.org/mailman/listinfo/samba