查看samba版本

smbd -V


下面是smb.conf


[global]
workgroup = MyWorkgroup
server string = %h Samba Server
netbios name = ubuntu_smb
interfaces = 127.0.0.0/8 eth0
security = user
map to guest = Bad User
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snwe\s*\spassword:* %n\n *retype\snew\spassword:* %n\n *password\supdated\ssuccesfully* .
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1024
dns proxy = No
usershare allow guests = Yes
panic action = /usr/share/samba/panic-action %d
socket options = TCP_NODELAY

[clear]
comment = clear
path = /home/llyd/clear
writable = yes
browseable = yes
available = yes
create mask = 0755
directory mask = 0755
force user = nobody
force group = nogroup
guest ok = Yes


注意要把/home/llyd/clear 目录递归设置为 nobody:nogroup,属性设置为775