Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm having an issue setting a password on a simple Samba share. I want the share to be visible to people on my network, but only people with the right set of credentials should be able to log in and see what is in the share.

Right now, anybody who sees the Raspberry Pi on my network can open the "rough" share, peruse it, and edit its contents.

My user "pi" is configured with Samba, but after clearing my credentials in Windows it still seems accessible to anyone.

My smb.conf:

server string = %h server
obey pam restrictions = Yes
pam passwordchange = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\s$
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
wins support = Yes
panic action = /usr/share/samba/panic-action %d
security = user

comment = Rough HD
path = /media/ROUGH
# Use just one user for now; testing
;valid users = @users
valid users = pi

# only hides it, doesn't make it secure
;browseable = no

read only = no
guest only = no
guest ok = no
share|improve this question

Your Answer


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

Browse other questions tagged or ask your own question.