Comments on Samba Server Configuration in CentOS 6.5

This guide explains how to configure samba server in CentOS 6.5 with anonymous & secured samba servers. Samba is an Open Source/Free Software suite that provides seamless file and print services to SMB/CIFS clients. Samba is freely available, unlike other SMB/CIFS implementations, and allows for interoperability between Linux/Unix servers and Windows-based clients.

7 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: Anonymous

 If samba share is not allowed in selinux this wont work.. (default selinux is enforced)

 This step is missing in this guide.. 

chcon -R -t samba_share_t /samba/anonymous/

 

 Yet easy to understand excellent guide 

By: Anonymous

Thanks! Hours trying to figure out why mine is not working.

Just had to disable SELINUX.

By: Mark

 For CentOS 6.6 I was unable to get this to work. I've disabled SELinux and IPTables to reduce variables. Windows can't even see a file I put in the share.

By: Mark

My mistake was I created the directory to be shared at /etc/samba/anonymous and not /samba/anonymous 

By: James

For Step 2, to make a copy of the orginal config file shouldn't the command be cp /etc/samba/smb.cnf /etc/samba/smb.cnf.bak 

Using the mv command as stated will simpily just rename the file.

By: till

No, it should not be cp here. The reason to use mv is to get a backup plus remove the file as we want to start with an empty file.

 

So if you would use cp instead of MV then you would have to run one more command to get the desired result:

 

cp /etc/samba/smb.cnf /etc/samba/smb.cnf.bak

cat /dev/null > /etc/samba/smb.cnf

 

By: shetu

smb.cnf or smb.conf