[Samba] passwd change program runs as user, not root!

Mac dmccann at nibsc.ac.uk
Fri Mar 15 06:43:33 GMT 2002


Hi all,

	I've been working (hard) on password sync (with NIS) here and
it's now ready to roll.  However, there's a problem.

If I use '% smbpasswd -r nnpdc' from the UNIX command line, then the password
change program runs as root and the NIS gets updated. 

If I use 'c:\> net password \\nnpdc' (from an Win98 box) then the password
change program runs as the user (proved by having the program (which is a
script) spit out an 'id -a' and also the temp files it creates aren't
root-owned). This fails (spectacularly) to update the NIS password.


Huh?

The log file at the point where the password change program is forked
off shows:-

	[2002/03/15 10:46:19, 3, pid=13220] smbd/chgpasswd.c:(428)
	  Dochild for user dmccann (uid=0,gid=0)
	[2002/03/15 10:46:19, 10, pid=13220] smbd/chgpasswd.c:(209)
	  Invoking '/usr/local/bin/ypzapnpasswd dmccann' as password change program.

and yet the log file that script produces shows:-

	# head ypzapnpasswd13220.ENV
	id -a >&2
	+ id -a
	+ 1>& 2
	uid=1110(dmccann) gid=100(Informatics) groups=100(Informatics)

(the shell script is running with -x-v for debugging purposes)


Muchly puzzled.

I'm running with a log level of 100 (I thought it might be (another)
password chat problem....), so I really don't know what else to look for.


Help!

                               Mac
          Assistant Systems Adminstrator @nibsc.ac.uk
                        dmccann at nibsc.ac.uk
   Work: +44 1707 654753 x285      Everything else: +44 7956 237670 (anytime)




More information about the samba mailing list