Setting up Samba home folder shares for a CentOS 7 server
CentOS 7 has made life so much easier compared to the last time. All of the following commands need to be run as the superuser.
yum install samba samba-client samba-commonsystemctl enable smbsystemctl enable nmbsetsebool -P samba_enable_home_dirs onfirewall-cmd --permanent --zone=public --add-service=sambafirewall-cmd --reloadYou might also need to set your Samba password depending on how your system is setup. Thus,
smbpasswd -a YOUR_USER_NAMEIf you have symlinks in your home directory to other bits of the system you will also need to edit /etc/samba/smb.conf. In the [homes] section, add:
follow symlinks = yeswide links = yesThen, in the [global] section, add:
unix extensions = no