Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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'd be generally ok with guest and an empty password as I don't need any access rights management among my users. But the server is a remote internet-accessed machine, so I'd prefer to set a good password for it. What's the most simple way? Can I just specify a password in samba.conf, or absolutely need to use LDAP or add users to the server system?

share|improve this question
You shouldn't expose samba to the WAN side of your network just like that. Instead use a ssh tunnel or a VPN to connect to samba over WAN. If you do so, guest accounts don't matter any more than they do on a LAN. – Jasper Jul 26 '10 at 21:08

Make sure you set: guest ok = yes and guest = guest in smb.conf. Make sure SELinux isn't getting in your way while you are testing setenforce 0. You may also need valid users = guest

You would probably need to set the password for the guest user using smbpasswd –a guest as well (if user exists -a may not be needed.) Make sure to remember to restart samba. service samba restart (might be smbd restart can't remember off top of my head).

share|improve this answer
You don't need to restart samba, smbcontrol smbd reload-config will do. – Jasper Jul 26 '10 at 21:05

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.