Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!mailrus!cornell!uw-beaver!rice!sun-spots-request From: krempel@pacrat.npac.syr.edu (Henry B.J. Krempel) Newsgroups: comp.sys.sun Subject: Re: Bug in YP password handling Message-ID: <8812021521.AA04367@PacRat.NPAC.syr.edu> Date: 14 Dec 88 05:16:51 GMT Sender: usenet@rice.edu Organization: Rice University, Houston, Texas Lines: 38 Approved: Sun-Spots@rice.edu Original-Date: Fri, 02 Dec 88 10:21:02 -0500 X-Sun-Spots-Digest: Volume 7, Issue 51, message 1 of 10 Frank W. Peters : >Hmmm...we are having a strange problem with a 3/160 running SunOS 4.0. >YP documentation indicates that YP does NOT keep its own copy of the >/etc/passwd file. >>Yet...we recently have had trouble with users attempting to change their >passwords. They change it and all goes well...but when they attempt to >log in later...their password is still the OLD password... The documentation must be wrong, we have a separate passwd file. You have to do two things to maintain a separate passwd file for the YP: - change the Makefile for the YP (in 4.0 it's in /var/yp) so that the passwd entries check that file, I think in 4.0 all you have to do is change the PASSWD symbol: PASSWD=/etc/passwd.yp - run yppasswdd with the appropriate arguments /usr/etc/rpc.yppasswdd /etc/passwd.yp -m passwd DIR=/etc PASSWD=/etc/passwd.yp Also, make sure your users are running "yppasswd" to change their password. I did this by linking "passwd" to "yppasswd" in /usr/ucb. Since this is before /bin on their paths, it works, and to use passwd, I type: /bin/passwd ... >From the behaviour you described, it seems like you weren't running the yppasswd daemon, or you were using passwd to modify passwords. Also, remember: it does take a little time to propagate. Henry B. J. Krempel Northeast Parallel Architectures Center (NPAC) Syracuse University 250 Machinery Hall Syracuse, N.Y. 13244