编辑Samba配置文件
root@Varrily:~# gedit /etc/samba/smb.conf
如无特殊要求,直接替换成这样就可以了
[global]
workgroup = WORKGROUP
display charset = UTF-8
unix charset = UTF-8
dos charset = cp936
server string = %h Server (Samba, Ubuntu)
security = share
[share]
comment = Shared Folder with username and password
path = /root/share
writeable = yes
browseable = yes
guest ok = yes
创建/root/share,设置Guest权限。
root@Varrily:~# id nobody
uid=65534(nobody) gid=65534(nogroup) 组=65534(nogroup)
在我这里都是65534
root@Varrily:~# chown -R 65534:65534 /root/share
就这么简单搞定。