[Samba] Problems syncing Samba and Linux passwords

Erlend Aasland erlenda at gmail.com
Thu May 19 22:38:33 GMT 2005


Hi all,

I'm trying to sync unix/samba passwords, but I experience problems
when running smbpasswd as a normal user (not as root). The error
message is "machine 127.0.0.1 rejected the password change: Error was
: RAP86: The specified password is invalid." Of course, trying to
change passwords from Windows clients does not work.

After some googling I've found out that I'm not the only one that has
encountered this problem. However, googling did not reveal an answer
to my problem. I've tried to experiment with the "interfaces" and
"bind interfaces only" parameters, the "hosts allow" parameter, and
pretty much every other parameter that has something to do with
passwords. No success. Turning off unix password sync is not an
option.

Can anyone that has encountered this problem please guide me towards a
solution to this very irritating problem.

Thanks,
  Erlend Aasland

Attached is the relevant pieces from smb.conf:
        encrypt passwords = Yes
        min password length = 5
        null passwords = No
        password server = *
        smb passwd file = /etc/samba/smbpasswd
        passdb backend = tdbsam:/etc/samba/private/passdb.tdb
        pam password change = No
        passwd program = /bin/passwd %u
        passwd chat = *New password* %n\n *Retype password* %n\n *Success*
        passwd chat debug = Yes
        passwd chat timeout = 2
        check password script =
        password level = 0
        unix password sync = Yes
        log level = 1 passdb:2 auth:2
        machine password timeout = 604800
        ldap passwd sync = no
        hosts allow = 127.0.0.1, 192.168.1.0/255.255.255.0


More information about the samba mailing list