More yuks with yppasswdd in SUNOS4.1
Casper H.S. Dik
casper at fwi.uva.nl
Sat Jun 30 02:39:07 AEST 1990
In article <9425 at brazos.Rice.edu> simon at spunky@corona.att.com writes:
>X-Sun-Spots-Digest: Volume 9, Issue 244, message 3
>
>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.
I used also used a dummy version of make to get to the bottom.
This is the work around I now use:
-----/var/yp/make---
#!/bin/sh
# throw away excess arguments rcp.yppasswd passwdfile -m
shift ; shift ; shift
# set the umask (passwd.dir,passwd.pag ended up rw-rw-rw-!)
umask 022
#echo "$@" >> /tmp/kladje
/bin/make "$@"
------end of /var/yp/make ---
On server: (in /etc/rc.local)
if [ -f /usr/etc/rpc.yppasswdd -a -d /var/yp/`domainname` ]; then
PATH=/var/yp:$PATH rpc.yppasswdd /etc/passwd -m DIR=/var/yp
echo -n ' yppasswdd'
fi
Hope this is of some use.
Casper H.S. Dik VCP/HIP: +31205922022
University of Amsterdam | casper at fwi.uva.nl
The Netherlands | casper%fwi.uva.nl at hp4nl.nluug.nl
More information about the Comp.sys.sun
mailing list