SELinux, Samba and Fedora 17 Home Directories
After upgrading to Fedora 17, I found that my home directory Samba
shares had mysteriously stopped working. After checking my logs (and
complaining on identi.ca) I found out that in Fedora 17 the
SELinux attributes for home directories has changed to disallow
sharing with Samba.
The workaround is located right in the /etc/samba/smb.conf file.
To enable Samba sharing for home directories, enter the following
command as root:
1 | /sbin/setsebool -P samba_enable_home_dirs on |
That will keep SELinux from denying access to your home directory
shares.
Additional information can be found reading the samba_selinux man page:
1 | man 8 samba_selinux |