标签:unix ons rect tab ble and ssdb date 修改
Ubuntu 16.04 samba共享homes示例:注:
1、global下加security = user (只有经过认证的才能访问)
2、 unix password sync = no (默认为yes,改为no个人才有权限执行smbpasswd改密码)
3、访问时要输ip\家目录名
[global]
workgroup = WORKGROUP
server string = %h server (Samba, Ubuntu)
security = user
dns proxy = no
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
server role = standalone server
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = no
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
[homes]
comment = Home Directories
browseable = no
writable = yes
:wq
# smbpasswd -a zhi.ming
设置密码
# service smbd restart
修改samba密码命令:smbpasswd
访问:\\ip\zhi.ming (ip后加用户家目录名) 用户名前加ip(ip\zhi.ming)
标签:unix ons rect tab ble and ssdb date 修改
原文地址:http://blog.51cto.com/yangzhiming/2164070