说明:/etc/samba/smb.conf文件中除以下内容都为注释
workgroup = WORKGROUP
server string = %h server (Samba, Ubuntu)
dns proxy = no
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
security = user
encrypt passwords = true
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
map to guest = bad user
usershare allow guests = yes
[workspace]
comment = workspace
path = /home/yuanlin/workspace
; browseable = yes
writeable = yes
create mask = 644
directory mask = 755
guest ok = yes
[Documents]
comment = Documents
path = /home/yuanlin/Documents
; browseable = yes
writeable = yes
guest ok = yes
附注:samba的安装apt-get install samba/apt-get install smbfs
samba的重启sudo /etc/init.d/samba restart
阅读(833) | 评论(0) | 转发(0) |