SUMMARY: yppasswdd fails to run make in /var/yp

From: Kevin Samborn (
Date: Sat Jul 20 1991 - 15:46:33 CDT

Thanks for all the help. Unfortunately, the answers (of which there
were three or so types) were very contradictory, and I still don't
think I have the perfect solution. I ended up using both answer one
and answer two, but when looking at the processes, there is still a
child of rpc.yppasswdd hanging around forever ("** EXIT **").

The answers were of these three types (or combinations):

1) you must run rpc.yppasswdd with its full pathname, like this:

   if [ -f /usr/etc/rpc.yppasswdd -a -d /var/yp/$dname ]; then
      /usr/etc/rpc.yppasswdd /usr/local/yp/passwd -m passwd DIR=/usr/local/yp
      echo -n ' yppasswdd'

   The explanation of this seems to be that the entire command line is
   passed to make. By specifying the full pathname of the daemon,
   make decides that the target is up-to-date and proceeds. (I don't
   know what make does with the "-m" option though.)

   There was one interesting answer that I didn't try:
      from uunet!!jba (Jan B. Andersen)

      I've had a similar problem with SunOS 4.1_PSR_A, and solved it
      by hacking .../yp/Makefile. Problem is, rpc.passwd does a 'make
      <its-own-commandline>' instead of just 'make passwd'. Maybe this
      hasn't been fixed in 4.1.1 B? Try moving /bin/make to
      /bin/make.bin, and substitute /bin/make with a shell script that
      writes its arguments to a file for later inspection.
      Anyway, here's the code to add in the Makefile.
          @echo "Dette er et gigantisk fix for rpc.yppasswdd"
          @echo "Hvorfor i h... h... h...... laver den en kommando der hedder"
          @echo "/bin/make rpc.yppasswdd /usr/etc/NIS-Master-files/passwd -m passwd"
          @echo "naar /bin/make passwd er rigeligt?"
          $(MAKE) $(MFLAGS) passwd
          exit 0

2) rpc.yppasswdd ignores (or mishandles) certain of its "-" options,
   so you need to specify an extra, like this:

   if [ -f /usr/etc/rpc.yppasswdd -a -d /var/yp/$dname ]; then
      rpc.yppasswdd /usr/local/yp/passwd -single -m passwd DIR=/usr/local/yp
      echo -n ' yppasswdd'

   There was no explanation for this, except that it is a bug.

3) there is a patch (#100201-03). (I didn't get it)


some people said that in older versions of SunOS, the master password
file had to be on the same Disk Partition as /etc. However, I did not
verify this.


a lot of people mentioned the -single & -nosingle arguments, but they
are undocumented, and I do not know what they mean.

Original Question:

        We are running NIS and rpc.yppasswdd. When a user changes
        their password, although the local master password file is
        updated, the make is not performed in /var/yp, causing the
        maps to not be updated.

        In fact, this is what I see from sps (immediately following a
        user changes their passwd):

           root 70 rpc.yppasswdd /usr/local/yp/passwd -m passwd
            | 22837 ** Exit **

        The local master passwd file is in /usr/local/yp/passwd

        This is how rpc.yppasswd is started from with /etc/rc.local
           if [ "$dname" -a -d /var/yp ]; then
              echo "NIS domainname is $dname" echo -n "starting NIS services:"
              if [ -f /usr/etc/ypserv -a -d /var/yp/$dname ]; then
                 ypserv; echo -n ' ypserv'
                 ypxfrd; echo -n ' ypxfrd'
              if [ -f /etc/security/passwd.adjunct ]; then
                 ypbind -s; echo -n ' ypbind'
                 ypbind; echo -n ' ypbind'
              if [ -f /usr/etc/rpc.yppasswdd -a -d /var/yp/$dname ]; then
                 rpc.yppasswdd /usr/local/yp/passwd -m passwd DIR=/usr/local/yp
                 echo -n ' yppasswdd'
              echo '.'

        We are running:
           Sun SPARCstation 1
           SunOS 4.1.1 Rev. B _no_ C2 security (I heard there were
              problems with this)

        strings /usr/etc/rpc.yppasswdd | grep -i sun:
           @(#)rpc.yppasswdd.c 1.22 89/09/06 Copyr 1985 Sun Micro
           @(#)yppasswdxdr.c 1.8 88/02/08 Copyr 1985 Sun Micro

Thanks to:

Andrew Luebker <uunet!!aahvdl>
Milt Ratcliff <>
Doug Neuhauser <uunet!!doug>
Don Hooper <uunet!khonshu.Colorado.EDU!hoop>
Jim Mattson <uunet!cs.UCSD.EDU!mattson>
Volker Siebelink <uunet!!volker>
Nathan Hoover <uunet!Teradyne.COM!nathan>
Claus Assmann <uunet!!ca>
Hannu Visti <uunet!!visti>
Jaap Romers <uunet!!romers>
Mike Raffety <uunet!!miker>
Brad Besmer <uunet!!besmer>
Andy Feldt <uunet!!feldt>
Jan B. Andersen <uunet!!jba>
Steve Harris <uunet!etnibsd!vsh>

kevin samborn                   "Anatidaephobia: The fear that somewhere,                 somehow, a duck is watching you."

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