安装:
sudo apt-get install sambasudo apt-get install smbfs创建文件夹shared:
mkdir /home/xx/sharedchmod 777 /home/xx/shared配置:
sudo gedit /etc/samba/smb.conf
;security = user改为:security = userusername map = /etc/samba/smbusers添加:
[Shared]comment = Shared Folder with username and password#刚才创建的文件夹path = /home/xx/sharedpublic = yeswritable = yesvalid users = ssnamecreate mask = 0700directory mask = 0700force user = nobodyforce group = nogroupavailable = yesbrowseable = yes修改:
[Global]workgroup = WORKGROUPdisplay charset = UTF-8unix charset = UTF-8dos charset = cp936保存smb.conf 添加ubuntu用户:
sudo useradd ssname给samba用户设置密码:
sudo smbpasswd -a ssname编辑文件/etc/samba/smbusers:
sudo gedit /etc/samba/smbusers添加内容,如:
ssname = "network username"保存退出/etc/samba/smbusers 重启,即可开始体验ubuntu的文件共享功能了。