Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

2 Answers 2

up vote 1 down vote accepted

I'm using

[global]

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

Example of smb.conf for anonymous access:

#======================= Global Settings

[global]
   workgroup = WORKGROUP
   netbios name = Encre
   security = user
   hosts allow = 192.168.0.0/24 127.0.0.1
   hosts deny = 0.0.0.0/0
   log file = /var/log/samba/%m
   max log size = 50
   socket options = TCP_NODELAY

#============================ Share Definitions

[homes]
   comment = Home Directories
   browseable = no
   writable = yes

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

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

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.