[Samba] Re: Password Chat/Sync problems with 3.0.23

Rob Mason rob at bsdbox.homeunix.com
Fri Aug 11 13:08:43 GMT 2006


Please ignore my colossal stupidity - I had an extra '%n' at the end of 
the chat string!!!

Apologies all...

> Hi,
>
> Following an upgrade to 3.0.23, it appears that my UNIX password 
> sync/chat is no longer working (although I can't confirm it wasn't 
> broken in 3.0.21, it was working before).  The XP clients throw up a 
> "no permission to change password" error when the users attempt to 
> renew passwords.  I've carefully checked my password chat script and 
> it appears to be OK.  The logs files show:
>
> <snip>
> .
> [2006/08/11 12:26:14, 3] smbd/chgpasswd.c:chgpasswd(462)
>  chgpasswd: Password change (as_root=Yes) for user: tester
> [2006/08/11 12:26:14, 3] smbd/chgpasswd.c:findpty(105)
>  pty: try to open ptyp0, line was /dev/ptyXX
> [2006/08/11 12:26:14, 3] smbd/chgpasswd.c:findpty(105)
>  pty: try to open ptyp1, line was /dev/ptyp0
> [2006/08/11 12:26:14, 3] smbd/chgpasswd.c:chat_with_program(351)
>  chat_with_program: Cannot Allocate pty for password change: tester
> .
> </snip>
>
> relevant portion of smb.conf is:
>
> <snip>
>        passdb backend = tdbsam
>        passwd program = /root/smbpass.sh %u
>        passwd chat = *Password* %n\n *Password* %n\n *Changed* %n\n
>        passwd chat debug = yes
>        unix password sync = Yes
>        username map = /usr/local/etc/samba/smbusers
> </snip>
>
> I've tried to simplify my password chat script to the simplest 
> possible variation for test purposes:
>
> #!/bin/sh
> /usr/bin/passwd -l $1
> echo "Password Changed"
>
> Thanks in advance...
>
> Rob
>
>
>
>




More information about the samba mailing list