Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to make every user's home directory from Debian machine to be available by its owner only (using Samba) but for now (with default Samba configuration) I can access other users /homes.

Here is the [home] config part :

comment = Home Directories
browseable = no
public = no
read only = no
create mask = 0700
directory mask = 0700
valid users = ashley joe %S

By logging on ashley's account from Windows 7 machine I can browse joe's home. How should I configure this ?

share|improve this question
up vote 3 down vote accepted

I think you should change valid users = ashley joe %S to only valid users = %S. In your example, ashley, joe and %S [the name of the share] is always valid, so ashley and joe can reach all homes, any other (if there are) users should only see their own in the example you gave.

share|improve this answer
For others finding this via google %S is the name of the Current share's name, see oreilly.com/openbook/samba/book/appc_01.html#appc-88529 for a list of all varaibles – Jontas Apr 19 '12 at 13:27

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.