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.