home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sun.admin
- Path: sparky!uunet!stanford.edu!ames!nsisrv!tron!css
- From: css@tron.stx.com (Chris Shenton)
- Subject: How to autorebuild yp data in response to yppasswd?
- Message-ID: <CSS.92Nov18102735@tron.stx.com>
- Sender: usenet@nsisrv.gsfc.nasa.gov (Usenet)
- Nntp-Posting-Host: tron.stx.com
- Organization: Hughes/STX, Lanham, MD
- Date: Wed, 18 Nov 1992 15:27:35 GMT
- Lines: 37
-
- I've been asked to set up a couple Suns and am having problems getting
- the rpc.yppasswdd to automatically rebuild the yp maps after a user
- changes his/her info with a yppasswd command. The manual and manpages
- conflict in how to set this up and none of the permutations I have
- tried work.
-
- Both indicate I need add startup of rpc.yppasswdd in /etc/rc.local,
- and add the `-m' flag to automatically re-make in the /var/yp
- directory from the source passwd file which I keep in /var/etc/passwd.
- Here's my attempt -- with flames -- any ideas?
-
- Thanks.
-
-
-
- From /etc/rc.local:
-
- # Change and update the NIS passwd information in response to
- # yppasswd request. This should update the /var/etc/passwd source
- # then cause an automatic make in the /var/yp directory. It could
- # assume the /var/yp/Makefile explicitely defines the DIR to point to
- # our passwd source directory, /var/etc/passwd. Otherwise, we should be
- # able to specify it by saying ``DIR=/var/etc'' after the `-m'.
- #
- # Unfortunately, it does *NOT* and the paper manual and online manpage
- # conflict, and neither cause the automatic make. They do, however,
- # update the /var/etc/passwd file, but that becomes out of sync with
- # the /var/yp data, so further changes become impossible due
- # to invalid passwords. Why no update??
-
- if [ -f /usr/etc/rpc.yppasswdd -a -d /var/yp/$dname ]; then
- rpc.yppasswdd /var/etc/passwd -m DIR=/var/etc ; echo -n ' rpc.yppasswdd'
- fi
-
-
- --
- -- Chris Shenton css@tron.stx.com Hughes/STX 301-794-5490
-