More yuks with yppasswdd in SUNOS4.1
simon at spunky
simon at spunky
Thu Jun 28 07:05:02 AEST 1990
When running yppasswdd with the -m flag to force a remake in /var/yp I
noticed that my YP (NIS for the British Telcom folks) passwd map was not
properly being updated from the intermediate file which yppasswd modifies.
I tracked it down by making a dummy version of the make program. As it
turns out rpc.yppasswdd does indeed invoke make with current working
directory /var/yp. Unfortunately it completely appended the arguments
provided after the -m flag to its own, and calls make with the resulting
arglist i.e.
On server: (in /etc/rc.local)
if [ -f /usr/etc/rpc.yppasswdd -a -d /var/yp/`domainname` ]; then
rpc.yppasswdd /etc/passwd -m DIR=/var/yp
echo -n ' yppasswdd'
fi
will result in calls to make in /var/yp with the following arguments
argv 0 1 2 3 4
make rpc.yppasswdd /etc/passwd -m DIR=/var/yp
needless to say this doesn't work. A user who thought they changed their
password with yppasswd will only be able to use their new password once
someone manually does a make in /var/yp - not optimal. I'll bug Sun about
this. Hopefully others will too.
Marc Simon simon at corona.ATT.COM
More information about the Comp.sys.sun
mailing list