Ubuntu 16.04 Samba Shared Homes Example:
Note:
1, global under Security = User (only authenticated to access)
2, unix Password sync = no (the default is yes, change to no individual to have permission to perform smbpasswd password change)
3, visit to lose ip\ home directory name
Vi/etc/samba/smb.conf
[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)
Ubuntu 16.04 Samba Shared Homes example