I'm not sure when the last time I run smbpasswd to change the user password, however when I run it only change NT and LM hash attribute, not the unix passwd attributes. smb.conf: ... passdb backend = ldapsam:"ldap://127.0.0.1" unix password sync = yes passwd program = /usr/local/sbin/passwd.pl %u passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully* However it was working find (able to change unix as well as NT password) when I run from Windows client, such as: c:\> net user example testonly /domain This is incorrect, at least per (surprise) pdbedit documentation: Note pdbedit does not call the unix password syncronisation script if unix password sync has been set. It only updates the data in the Samba user database. If you wish to add a user and synchronise the password that im- mediately, use smbpasswd's -a option. Ver: samba-3.0.20b --beast
Felipe Augusto van de Wiel
2006-Sep-18 13:36 UTC
[Samba] unix password sync = yes, did not sync unix passwd
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 09/12/2006 03:38 AM, beast escreveu:> I'm not sure when the last time I run smbpasswd to change the user > password, however when I run it only change NT and LM hash attribute, > not the unix passwd attributes. > > smb.conf: > ... > passdb backend = ldapsam:"ldap://127.0.0.1" > unix password sync = yes > passwd program = /usr/local/sbin/passwd.pl %u > passwd chat = *New*password* %n\n *Retype*new*password* %n\n > *passwd:*all*authentication*tokens*updated*successfully*Are you using LDAP? What about using 'ldap passwd sync'?> However it was working find (able to change unix as well as NT password) > when I run from Windows client, such as: > c:\> net user example testonly /domain > > This is incorrect, at least per (surprise) pdbedit documentation: > Note > > pdbedit does not call the unix password syncronisation > script if > unix password sync has been set. It only updates the data > in the > Samba user database. > > If you wish to add a user and synchronise the password > that im- > mediately, use smbpasswd's -a option. > > Ver: samba-3.0.20b > > > --beastKind regards, - -- Felipe Augusto van de Wiel <felipe@paranacidade.org.br> Coordenadoria de Tecnologia da Informa??o (CTI) - SEDU/PARANACIDADE http://www.paranacidade.org.br/ Phone: (+55 41 3350 3300) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with Debian - http://enigmail.mozdev.org iD8DBQFFDqC8Cj65ZxU4gPQRAsLuAKCnRec3ktz9sDhNi0B6EX9Wti+13ACdHiyO 19OZ8FjG8iF2f5J+dDoyVUc=oz+1 -----END PGP SIGNATURE-----
Reasonably Related Threads
- I cannot see the network in the PDC server but yes in xp stations, any idea?
- help, please, troubleshooting winbind testing during setup of Samba 4 AD member server
- did you create a program called "Banner" for Palm OS?
- Did a recent Samba upgrade change something to lose connection with iptables enabled?
- "Wbinfo -u" get user account sucessfully but "getent passwd" fails