1)安装samba相关软件;
smbpasswd -a zhaotianwang
3)修改/etc/samba/smb.conf
[zhaotianwang]
comment = user for zhaotianwang
path = /home/zhaotianwang
valid user = zhaotianwang
public = no
writable = yes
printable = no
create mask = 0765
security = user
4)修改/etc/samba/smbusers
root = administrator admin
nobody = guest pcguest smbguest
5)打开相关服务
service smbd restart
service nmbd restart
注意:这一点与centos不同,centos上是service smb/nmb restart
原文链接:https://www.f2er.com/ubuntu/356511.html