Setting Up Samba To Use /etc/shadow
Is there a way to set up Samba to purely use /etc/shadow?
This is my current file, but it requires I create /etc/samba/smbusers and put users inside, and then do useradd to add Linux users, and then do smbpasswd to add SMB users. I just want it to synchronize with whatever is in the Linux user account database (/etc/shadow) and not have to mess with smbpasswd.
workgroup = WORKGROUP
server string = %h server (Samba, Ubuntu)
wins support = no
dns proxy = no
log file = /var/log/samba/log.smbd
log level = 1
max log size = 1000
syslog only = no
syslog = 0
panic action = /usr/share/samba/panic-action %d
security = user
encrypt passwords = true
; passdb backend = tdbsam guest
username map = /etc/samba/smbusers
obey pam restrictions = yes
; guest account = nobody
invalid users = root
unix password sync = no
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .
pam password change = no
# Most people will find that this option gives better performance.
# See smb.conf(5) and /usr/share/doc/samba-doc/htmldocs/speed.html
# for details
# You may want to add the following on a Linux system:
# SO_RCVBUF=8192 SO_SNDBUF=8192
socket options = TCP_NODELAY
comment = hidden share "docs$"
path = /tmp/docs
guest ok = no
browseable = no
writable = yes
create mask = 0775
directory mask = 0775
available = yes
public = yes