标签:
对照上文描述,我的相关脚本为:
sudo apt-get install samba sudo apt-get install smbfs
我是把整个home给共享了,因此相对原文描述少了某些配置
security = user
username map = /etc/samba/smbusers
[Share] comment = Shared Folder with username and password path = /home/yingc public = yes writable = yes valid users = yingc create mask = 0700 directory mask = 0700 force user = yingc force group = yingc available = yes browseable = yes
workgroup = WORKGROUP display charset = cp936 unix charset = UTF-8 dos charset = cp936
sudo smbpasswd -a yingc #这个我直接输入了我的虚拟机的登录用户名 sudo gedit /etc/samba/smbusers #创建smbusers,输入以下内容: yingc = "yingc"
#最后重启
sudo /etc/init.d/smbd restart
aa
标签:
原文地址:http://www.cnblogs.com/jingzhishen/p/4603985.html