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)? thanks in advance, andrej
Kaustubh Chaudhari
2007-Oct-30 15:09 UTC
[Samba] homes directory visible only for one user
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)? > > thanks in advance, andrej >By default home directories are share for the respective users, if you want to share one directory for 2 users better configure a new share. Kaustubh.
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