cyroreal
2002-Feb-01 12:59 UTC
[Samba] Problem with password chat and unix password sync..
Hi all, I am trying to sync unix and samba passwords but it is not working, i added the following lines to my smb.conf unix password sync = Yes passwd program = /usr/bin/passwd %u passwd chat = *New*UNIX*password* %n\n *Retype*new*UNIX*password*%n\n *passwd:*all*authentication*tokens*updated*successfully* And passwd command on my system (Mandrake 8.0) works like this... [cyrofilho@servidor cyrofilho]$ passwd Changing password for cyrofilho (current) UNIX password: New UNIX password: Retype new UNIX password: passwd: all authentication tokens updated successfully [cyrofilho@servidor cyrofilho]$ What am i doing wrong?? i allready tryed the following in smb.conf, but testparm says that i can not use %o with encrypted passwords and the password sync does not work... passwd chat *(current)*UNIX*password* %o\n *New*UNIX*password* %n\n *Retype*new*UNIX*password*%n\n *passwd:*all*authentication*tokens*updated*successfully* So what can i do to make it work.. Tanks in advance... Cyro __________________________________________________________________________ Quer ter seu pr?prio endere?o na Internet? Garanta j? o seu e ainda ganhe cinco e-mails personalizados. Dom?niosBOL - dominios.bol.com.br
John Benedetto
2002-Feb-01 17:19 UTC
[Samba] Problem with password chat and unix password sync..
That option assumes your users are primarily WINDOWS users, and not Unix users. The password sync option is one way, in that it only refers to WINDOWS users changing their password, and having the system ALSO change the same user on the Unix side behind the scenes. It is *NOT* designed to work from the Unix side, i.e. when you type passwd at a Unix prompt, to also have the Samba password changed. - john --On Friday, February 01, 2002 6:53 PM -0200 cyroreal <cyroreal@bol.com.br> wrote:> I am trying to sync unix and samba > passwords but it is not working, i > added the following lines to my smb.conf > > unix password sync = Yes > passwd program = /usr/bin/passwd %u > passwd chat = *New*UNIX*password* %n\n > *Retype*new*UNIX*password*%n\n > *passwd:*all*authentication*tokens*updated*successfully* > > > And passwd command on my system > (Mandrake 8.0) works like this... > > [cyrofilho@servidor cyrofilho]$ passwd > Changing password for cyrofilho > (current) UNIX password: > New UNIX password: > Retype new UNIX password: > passwd: all authentication tokens > updated successfully > [cyrofilho@servidor cyrofilho]$