smbpasswd fails

Jamie ffolliott jmeff at engsoc.queensu.ca
Sun Apr 25 02:39:24 GMT 1999


Updated the latest CVS today (april 24) and got new behaviour..

In log.samba_server :
[1999/04/24 21:39:55, 3] smbd/chgpasswd.c:chgpasswd(381)
  Password change for user: jmeff
[1999/04/24 21:39:55, 0] lib/fault.c:fault_report(40)
  ===============================================================
[1999/04/24 21:39:55, 0] lib/fault.c:fault_report(41)
  INTERNAL ERROR: Signal 11 in pid 1002 (2.1.0-prealpha)
  Please read the file BUGS.txt in the distribution
[1999/04/24 21:39:55, 0] lib/fault.c:fault_report(43)
  ===============================================================
[1999/04/24 21:39:55, 0] lib/util.c:smb_panic(2538)
  PANIC: internal error

This happens by setting these options:
unix passwd sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *password* %n\n *password* %n\n *successfull*

No problems though if I set
unix passwd sync = no

Looks like the 'unix passwd sync' feature is broken.  Both smbpasswd and
SWAT will report "success" changing a user's password, but the password
doesn't actually change.  You'll notice the passwd hash doesn't change in
the smbpasswd file.  I'm not affluent enough to code a fix, so I'll post
this as a bug report.  Running redhat 5.2 kernel 2.2, and tested on a stock
Redhat 5.2 machine too.  If someone does post a fix, please copy a message
to this list.
Cheers,
Jamie

> -----Original Message-----
> From: samba-ntdom at samba.org [mailto:samba-ntdom at samba.org]On Behalf Of
> Jamie ffolliott
> Sent: Saturday, April 24, 1999 5:11 PM
> To: Multiple recipients of list
> Subject: smbpasswd fails
>
>
> 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
>
> smb.conf:
>    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. 127.0.0.1
>
> Logged on by telnet,
> [jmeff at moseisley jmeff]$ smbpasswd
> Old SMB password:
> New SMB password:
> Retype new SMB password:
> machine 127.0.0.1 rejected the password change: Error was : The specified
> passwo
> rd is invalid.
> Failed to change password for jmeff
>
> smbpasswd (samba 2.0 format):
> jmeff:502:18FD4289FE4747BF695109AB020E401C:524203E0438ED26DE999C14
> 4E6F88FEC:
> :/ho
> me/jmeff:/bin/bash
>
> 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