samba3.6.3设置无需密码的共享目录

查看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

你可能感兴趣的:(共享目录,samba3.6.3,设置无需密码)