Bug 8699 - need to re-add users when updating?
Summary: need to re-add users when updating?
Alias: None
Product: Samba 3.5
Classification: Unclassified
Component: User & Group Accounts (show other bugs)
Version: 3.5.10
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
Depends on:
Reported: 2012-01-12 12:37 UTC by g
Modified: 2012-01-12 14:39 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description g 2012-01-12 12:37:27 UTC
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?

    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
    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
Comment 1 Christian Ambach 2012-01-12 12:45:16 UTC
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
Comment 2 Volker Lendecke 2012-01-12 14:39:04 UTC
Please re-open if pdbedit -i smbpasswd -e tdbsam does not work for you