>yum install samba-client samba-common cifs-utils
smb.conf
>vim /etc/samba/smb.conf
(Page 16-22~ 16-27)
SELinux(Page 16-40~16_41)
>setsebool -P samba_enable_home_dirs=1
>getsebool -a | grep samba_enable_home
>ll -ZD /home/project
>chcon -t samba_share_t /home/project
>ll -ZD /home/project
Firewall( iptables, Page 16-41)
>iptables -A INPUT -p tcp -s 192.168.100.0/24 -m multiport --dport 139,145 -j
ACCEPT
>iptables -A INPUT -p udp -s 192.168.100.0/24 -m multiport --dport 137,138 -j
ACCEPT
> mount -t cifs //127.0.0.1/smb1 /mnt -o username=smb1
>Win 7 連接 CentOS (Page 16-45)