1.sudo apt-get insall samba
2.修改/etc/samba/smb.conf
3.加入这个
# security = user
security = share
[root]
comment=this is Linux share directory
path=/
public=yes
writable=yes
4.保存退出
5.重启 /etc/init.d/samba restart
6.ok
smbpasswd -a phinecos
参考地址:http://www.cnblogs.com/phinecos/archive/2009/06/06/1497717.html