1、安装所需要的安装包sudo apt-get update
2、sudo apt-get install samba samba-common
3、创建一个共享文件夹mkdir /home/shar
4、chmod 777 /home/shar
5、sudo vim /etc/samba/smb.conf
6、设置最低权限以访客身份访问,添加代码 security = share
7、在文件末尾添加:
[myshar] comment = my shar dir path = /home/shar public = yes browseable = yes writable = yes
/home/shar共享文件夹名,需要跟自己上面创建的文件名一致
8、重启Samba服务器sudo service smbd restart
9、如果单个文件没有读写权限需要对单个文件修改权限xx6
原文:http://www.cnblogs.com/ape-ming/p/5097277.html