upgrading from centos4:samba-3.0.33 to centos6:samba-3.5.10. "smbd -b|less" says "SMB_PASSWD_FILE: /var/lib/samba/private/smbpasswd". i have brought forward /etc/samba/smbpasswd and /etc/samba/secrets.tdb to /var/lib/samba/private, as well as /var/cache/samba/*.{dat,tdb} to /var/lib/samba, but it still seems to be necessary to smbpasswd -a for every user. am i missing something, or is it a bug? [global] server string= %h/%L netbios aliases = nettime time server = True log file = /var/log/samba/%m.log max log size = 0 security= user encrypt passwords = yes null passwords = true unix password sync = Yes passwd program = /usr/bin/passwd %u passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully* logon script = netlogon.bat socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 dos filetimes = True dos filemode = yes name resolve order = wins bcast host lmhosts writeable=yes veto files = /.AppleDouble/.AppleDesktop/Network Trash Folder/TheVolumeSettingsFolder/ delete veto files = yes idmap gid = 10000-20000 idmap uid = 10000-20000 template shell = /bin/false map archive = yes map system = yes map hidden = yes create mask = 0775 directory mask = 0775 security mask = 0777 directory security mask = 0777 deadtime= 5 workgroup= workgroup wins support = yes
The defaults for the passdb backend parameter has changed between 3.0 and 3.5. In order to make smbd still use the smbpasswd file, you need to add a line passdb backend = smbpasswd to the config. Or migrate your smbpasswd file to the (now default) tdbsam backend see man pdbedit and look for the -i option
Please re-open if pdbedit -i smbpasswd -e tdbsam does not work for you