[login]
comment = need user and passwd
path = /home/ks
browseable = yes
writeable = yes
create mask = 0700
directory mask = 0700
valid users = ks
[pub]
comment = public user
path = /home/ks
browseable = yes
guest ok = yes
read only = yes
重启服务
/etc/init.d/nmbd restart
配置文件
/etc/samba/smb.conf
windows下端口samba连接
net use * /del