1. 改smb.conf文件;
在[global]部分加入:null passwords = yes
设置 security = share
取消 guest account = pcguest 的注释
建立[pcguest]段:
[pcguest]
comment = pcguest's share
path = /home/pcguest
public = yes
guest ok = yes
writable = yes
2.建立pcguest用户,并修改/home/pcguest目录权限
#useradd pcguest
#passwd pcguest
#chmod a+r,a+w /home/pcguest
3.将pcguest加入smbpasswd文件中
#smbpasswd -a pcguest
#smbpasswd -n pcguest
4.重启samba.