[Samba] homes directory visible only for one user
Neal A. Lucier
nlucier at math.purdue.edu
Wed Oct 31 04:22:18 GMT 2007
andrej spilak wrote:
> Hi!
> I'm kinda new, so i'm wondering how should i configure [homes] section, so
> only two of many users (e.g. "user1" and "user2") could see it shared in
> network (so only those users could access their homes)?
>
From the man page for smb.conf:
http://us1.samba.org/samba/docs/man/manpages-3/smb.conf.5.html
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.
Default: valid users = # No valid users list (anyone can login)
Example: valid users = greg, @pcusers
Neal
More information about the samba
mailing list