Gary Kuhlmann - April 13, 2014
Before starting the process, disable seLinux. I am sure that there is a way to get this to work without disabling it but for simplicity I will go ahead and disable.
Install the needed packages:
yum install samba samba-client samba-common
Setup the services so that they will start when the system starts:
chkconfig smb on chkconfig nmb on
Next, add the needed firewall rules:
sudo iptables -I INPUT 4 -m state --state NEW -m udp -p udp --dport 137 -j ACCEPT sudo iptables -I INPUT 5 -m state --state NEW -m udp -p udp --dport 138 -j ACCEPT sudo iptables -I INPUT 6 -m state --state NEW -m tcp -p tcp --dport 139 -j ACCEPT sudo service iptables save
Then start the needed processes:
service smb start service nmb start
Edit /etc/samba/smb.conf and add these lines:
#======================= Global Settings ===================================== [global] workgroup = WORKGROUP security = share map to guest = bad user #============================ Share Definitions ============================== [MyShare] path = [path to directory] browsable =yes writable = yes guest ok = yes read only = no
Then just restart you samba services (smb and nmb). You should now be able to connect to your shares.