Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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 :

[homes]
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
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

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.