smbpasswd fails

Jamie ffolliott jmeff at
Sat Apr 24 21:10:03 GMT 1999

Hi there,

I'm having trouble getting an ordinary user to change their samba/unix
password using smbpasswd, which fails everytime on random (good) passwords.
I've got unix password sync enabled, and the standard setup on the ntdom
faq, using Redhat 5.2 linux.  This goes for both samba2.0.3 and
samba2.1.prealpha (march 25th CVS).  Oddly, it may work the odd time when
the password's changed from an NT workstation, but not via SWAT and not
reliably by any method.  Can anyone suggest what may be wrong with my
smb.conf/samba/linux setup?  I've copied my config and the error messages +
debug 100 logs below.

I'm trying to get this working this weekend to handle many password changes
on Monday, so a quick response would be very much appreciated ;)  Thanks in
advance for any help.
- Jamie

   unix password sync = yes
   passwd program = /usr/bin/passwd %u
   passwd chat = *password* %n\n *password* %n\n *successfull*
   encrypt passwords = yes
   hosts allow = 192.168.69.

Logged on by telnet,
[jmeff at moseisley jmeff]$ smbpasswd
Old SMB password:
New SMB password:
Retype new SMB password:
machine rejected the password change: Error was : The specified
rd is invalid.
Failed to change password for jmeff

smbpasswd (samba 2.0 format):

log.samba_server :
[1999/04/24 16:18:37, 3] smbd/chgpasswd.c:chgpasswd(394)
  Password change for user: jmeff
[1999/04/24 16:18:37, 3] smbd/chgpasswd.c:findpty(89)
  pty: try to open ptya0, line was /dev/ptyXX
[1999/04/24 16:18:37, 3] smbd/chgpasswd.c:findpty(93)
  pty: opened /dev/ptya0
[1999/04/24 16:18:37, 3] smbd/chgpasswd.c:chat_with_program(369)
  Dochild for user jmeff (uid=0,gid=0)
[1999/04/24 16:18:37, 10] smbd/chgpasswd.c:dochild(189)
  Invoking '/usr/bin/passwd jmeff' as password change program.
[1999/04/24 16:18:38, 100] smbd/chgpasswd.c:talktochild(263)
  talktochild: chatbuf=[*password*] responsebuf=[New UNIX password: ]
[1999/04/24 16:18:38, 100] smbd/chgpasswd.c:talktochild(276)
  talktochild: sendbuf=[1a2s3d4f
[1999/04/24 16:18:38, 100] smbd/chgpasswd.c:talktochild(263)
  talktochild: chatbuf=[*password*] responsebuf=[
  Retype new UNIX password: ]
[1999/04/24 16:18:38, 100] smbd/chgpasswd.c:talktochild(276)
  talktochild: sendbuf=[1a2s3d4f
[1999/04/24 16:18:42, 100] smbd/chgpasswd.c:talktochild(263)
  talktochild: chatbuf=[*successfull*] responsebuf=[]
[1999/04/24 16:18:42, 3] smbd/chgpasswd.c:talktochild(266)
  response 3 incorrect
[1999/04/24 16:18:42, 3] smbd/chgpasswd.c:chat_with_program(316)
  Child failed to change password: jmeff
[1999/04/24 16:18:42, 3] smbd/chgpasswd.c:chat_with_program(347)
  The process exited while we were waiting
[1999/04/24 16:18:42, 5] smbd/ipc.c:copy_trans_params_and_data(150)
  copy_trans_params_and_data: params[0..2] data[0..0]

More information about the samba-ntdom mailing list