password synching -- Grrr.. (fwd)

Jens B. Jorgensen jjorgens at
Fri May 15 14:44:39 GMT 1998

The passwd program must be setuid root. Are you explicitly passing the user name to smbpasswd? Otherwise smbpasswd probably just get's uid (which would be root).

Kevin Currie wrote:

> Hello,
> This is a forwarded message from my unix sysadmin (he's taking care of the
> Unix side of things and I've got the NT side).  Just a little background,
> we're trying to execute smbpasswd from within Sun's passwd program.  We
> have the source.
> Thanks,
> Kevin
> ---------- Forwarded message ----------
> Date: Thu, 14 May 1998 13:48:32 -0400 (EDT)
> From: "Leonard J. Peirce" <peirce at>
> Reply-To: leonard.peirce at
> To: CURRIE KEVIN <x7currie at>
> Subject: password synching -- Grrr..
> Hi...
> I'm working with the password syncing and running into a problem.  Every
> time I try to exec smbpasswd from the passwd program everything runs ok
> until it tries to make the connection to the server and change the password.
> Then I get the message:
> smbpasswd: machine medusa rejected the session setup. Error was : ERRSRV - ERRbadpw (Bad password - name/password pair in a Tree Connect or Session Setup are invalid.).
> But if I just run smbpasswd from the command line everything looks ok.
> Could you possibly ask on your mailing list if they have any idea what's
> happening?  Or perhaps some suggestions about debugging it?
> At the worst we could put a message in the passwd program telling people to
> run smbpasswd on their own to change their password.  Not optimal but it might
> be acceptable until we can get things working correctly.
> - Leonard

Jens B. Jorgensen
jjorgens at

More information about the samba-ntdom mailing list