Path: utzoo!attcan!uunet!mailrus!cornell!uw-beaver!rice!sun-spots-request From: casper@fwi.uva.nl (Casper H.S. Dik) Newsgroups: comp.sys.sun Subject: Re: More yuks with yppasswdd in SUNOS4.1 Keywords: Software Message-ID: <9570@brazos.Rice.edu> Date: 29 Jun 90 16:39:07 GMT Sender: root@rice.edu Organization: Sun-Spots Lines: 38 Approved: Sun-Spots@rice.edu X-Refs: Original: v9n244 X-Sun-Spots-Digest: Volume 9, Issue 249, message 1 In article <9425@brazos.Rice.edu> simon@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@fwi.uva.nl The Netherlands | casper%fwi.uva.nl@hp4nl.nluug.nl