Comments on CentOS 6.3 Samba Standalone Server With tdbsam Backend
CentOS 6.3 Samba Standalone Server With tdbsam Backend This tutorial explains the installation of a Samba fileserver on CentOS 6.3 and how to configure it to share files over the SMB protocol as well as how to add users. Samba is configured as a standalone server, not as a domain controller. In the resulting setup, every user has his own home directory accessible via the SMB protocol and all users have a shared directory with read-/write access.
2 Comment(s)
Comments
Hi,
Well-done tutorial! It actually isn't too hard to keep SELinux enabled when setting up and running Samba. For me, it was a matter of setting up my SELinux types correctly; see "Getting SELinux Types Right" here:
http://oklampy.wordpress.com/2012/05/18/setting-up-samba/
If you want to share home directories, there's an "samba_enable_home_dirs" SELinux boolean that would be relevant to you.
The best reference I've seen around SELinux and Samba is the "samba_selinux" man page. Dan Walsh of Red Hat has a snapshot of it on his blog:
http://danwalsh.livejournal.com/14195.html
Please make sure that SELinux is disabled:
Edit /etc/selinux/config and set SELINUX=disabled:
*Facepalm*
I could have saved myself over one week of aggravation if I stumbled upon this tutorial sooner. This one f***ing line was the source of ALL my headaches preventing Samba access from all my Windows machines. I thought it was addressed by shutting off the firewall, but no - SELinux was still set to enforced (and I do not need it for my internal home network).
In CentOS 5, SELinux settings appeared during install and as a tab in the GUI firewall utility. These settings were "in your face" - I knew to disable it for my home environment. The tab is gone in the firewall utility making it easy to forget that you need to adjust the script manually now.
Thank you.