yum install samba /etc/init.d/iptables stop setenforce 0 vim /etc/samba/smb.conf [mob] comment = mob xls guest ok = yes browseable = yes writable = yes path = /var/www/excel
增加samba用户
useradd monitor
passwd monitor
增加monitor 用户到samba数据库(不要与上面密码一样)
smbpasswd -a monitor
测试:
smbclient //ip/mob -U monitor
在Windows 登陆:
//ip/mob
More:http://www.cnblogs.com/mchina/archive/2012/12/18/2816717.html