[Samba] smbd (still) not running passwd as root

sranetworking at swiftdsl.com.au sranetworking at swiftdsl.com.au
Wed Aug 6 05:58:16 GMT 2003


Hi all,

I seem to be having the same problem that another user (Thomas Dewar)
posted recently.  When I try to run smbpasswd as a logged on user (on this
occasion as the it user logged onto the samba box) I get the following:

machine 127.0.0.1 rejected the password change: Error was : RAP86: The
specified password is invalid.
Failed to change password for it

When I check the logs after enabling passwd chat debug I find:

[2003/08/06 15:15:36, 3] smbd/chgpasswd.c:chgpasswd(492)
  Password change for user: it
[2003/08/06 15:15:36, 10] smbd/chgpasswd.c:findpty(87)
  findpty: Allocated slave pty /dev/pts/0
[2003/08/06 15:15:36, 3] smbd/chgpasswd.c:chat_with_program(443)
  Dochild for user it (uid=0,gid=0)
[2003/08/06 15:15:36, 10] smbd/chgpasswd.c:dochild(217)
  Invoking '/usr/bin/passwd it' as password change program.
[2003/08/06 15:15:36, 0] lib/util_sock.c:read_socket_with_timeout(279)
  read_socket_with_timeout: timeout read. read error = Input/output error.
[2003/08/06 15:15:36, 100] smbd/chgpasswd.c:expect(271)
  expect: expected [*New*password*] received [passwd: Only root can
specify a user name.
  ] match no
[2003/08/06 15:15:36, 2] smbd/chgpasswd.c:expect(277)
  expect: Input/output error
[2003/08/06 15:15:36, 3] smbd/chgpasswd.c:talktochild(308)
  Response 1 incorrect
[2003/08/06 15:15:36, 3] smbd/chgpasswd.c:chat_with_program(376)
  Child failed to change password: it
[2003/08/06 15:15:36, 3] smbd/chgpasswd.c:chat_with_program(421)
  The status of the process exiting was 64768


I noticed that Jeremy posted a patch on the 31st of July fixing an issue
with passwd not running as root, so I downloaded compiled and installed
the latest CVS source but I'm still getting the problem (Incidently the
problem also occured on beta1 and beta3 of samba 3).  I'm running redhat
9.0 and the relevant values in my smb.conf file are:

unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd*
passwd chat debug = yes


Any insights would be much appreciated.  Thanks, Mike.





More information about the samba mailing list