1,smb配置文件
[global]
workgroup = WORKGROUP
netbios name = LinuxSir05
server string = Linux Samba Server TestServer
security = user
dns proxy = no [pub]
path = /data/pub
available = yes
browseable = yes
public = yes
writable = yes
create mask =
directory mask =
force user = pub
force group = pub
2,添加用户
smbpasswd -a pub
3,启动
service samb restart