SUMMARY: yppasswd on 4/280 4.1.1b

From: Real Page (rpage@bigbrother.matrox.com)
Date: Wed Jan 08 1992 - 22:20:01 CST


Slap, Slap, Slap....

This rpc.yppasswd problem was finally a pilot error... I did read the manual,
but in the example show in the manual the passwd file was in /var/yp. I my
case the passwd file was in /var/yp/maps. So using

      /usr/etc/rpc.yppasswdd /var/yp/maps/passwd -m passwd DIR=/var/yp

resulted in doing 'make passwd DIR=/var/yp' that gave me the following error
when doing it in the /var/yp directory.

make: Fatal error: Don't know how to make target `/var/yp/passwd'
 
However, I never saw the messages when rpc.yppasswd was doing the make.
Thank to Phillip Musumeci who suggested using the following script
he used to fix the make bug: (modified for my own debugging)

        #!/bin/csh -f -b
        #
        echo "`date`" >> /usr/bin/make.log
        echo $PWD >> /usr/bin/make.log
        echo MAKE $* >> /usr/bin/make.log
        if ( "$1" == "/usr/etc/rpc.yppasswdd" ) then
            shift
            shift
            shift
            cd /var/yp
            echo "Shift done" >> /usr/bin/make.log
        endif
        echo MAKE $* >> /usr/bin/make.log
        /bin/make.ORG $*

In the end, I figure that DIR=/var/yp/maps would work, but also that

      /usr/etc/rpc.yppasswdd /var/yp/maps/passwd -m passwd

was fine too. DIR is defined in the Makefile, so why bother. I also
put back the old make in place and everything is working fine.

Thanks to the following people
        ckon@intranet.gr (Chris Kondellis)
        uunet!cchtor!larry (Larry Chin)
        phillip@mirriwinni.ee.adfa.oz.au (Phillip Musumeci)

+----------------------------+----------------+----------------------+
| Real Page | 1055 St-Regis | (514) 685-7230 #2359 |
| Keyboard Administrator | Dorval, Canada | (514) 685-7030 Fax |
| Matrox Electronics Systems | H9P 2T4 | Real.Page@matrox.com |
+----------------------------+----------------+----------------------+



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:06:33 CDT