准備工作:
先排除系統安全機制干擾,關閉iptables、selinux
service iptables stop
setenforce 0
++++++++++++++++++++++++++++++++++++
1、安裝samba(CentOS Linux):
yum install samba system-config-samba samba-client samba-common
2、創建系統用戶賬號
/usr/sbin/groupadd www
/usr/sbin/useradd -g www www
3、創建samba配置文件
mv -f /etc/samba/smb.conf /etc/samba/smb.conf.bak
vi /etc/samba/smb.conf
4、為samba用戶www設立一個密碼:
smbpasswd -a www
5、啟動samba:
/sbin/service smb start