Take the 2-minute tour ×

I have just set up Samba on a CentOS 5 machine. It works OK, but I would like to configure it so that users can connect to Samba shares without the need to provide a user name and password. I have googled for a smb.conf reference but documentation seems to be quite scattered and not comprehensive. Can somebody explain how to achieve this? Many thanks.

share|improve this question
add comment

2 Answers

up vote 1 down vote accepted

I'm using


security = share

in smb.conf.

This seems to be enough for passwordless access. The computers belong to the same workgroup, but I don't know if this is a mandatory requirement.

share|improve this answer
Thanks. That works! –  CesarGon Dec 8 '09 at 14:42
add comment

Example of smb.conf for anonymous access:


   workgroup = WORKGROUP
   netbios name = Encre
   security = user
   hosts allow =
   hosts deny =
   log file = /var/log/samba/%m
   max log size = 50
   socket options = TCP_NODELAY


   comment = Home Directories
   browseable = no
   writable = yes

   comment = other!
   path = /home/otheruser/share
   force user = otheruser
   force group = otherusergroup
   read only = No
   guest ok = Yes

share|improve this answer
I hope the "porn" bit is optional! –  CesarGon Dec 8 '09 at 14:46
add comment

Your Answer


