Path: utzoo!attcan!uunet!cs.utexas.edu!rice!sun-spots-request From: jms@tardis.tymnet.com (Joe Smith) Newsgroups: comp.sys.sun Subject: Re: Using YP to change passwords Keywords: Networks Message-ID: <4248@brazos.Rice.edu> Date: 4 Jan 90 12:43:15 GMT Sender: root@rice.edu Organization: Sun-Spots Lines: 22 Approved: Sun-Spots@rice.edu X-Refs: Original: v8n228 X-Sun-Spots-Digest: Volume 9, Issue 6, message 2 of 9 In article <4002@brazos.Rice.edu> sequent!jsc@cs.utexas.edu writes: :X-Sun-Spots-Digest: Volume 8, Issue 228, message 14 of 18 :yppasswd to change their password, the password gets changed in the YP :database, but the client is not updated until the next time root pushes :the passwd file with yppush. The support folks tell me this is the :functionality of 4.03. Is that true? Is so, how do some of the rest of :you work with this? Do you put yppush in crontab? To do an automatic yppush whenever anyone runs yppasswd, simply add "-m" to the line in /etc/rc, as in: if [ -f /usr/etc/rpc.yppasswdd ]; then rpc.yppasswdd /etc/passwd -m; (echo -n ' yppasswdd') >/dev/console fi The -m tells yppasswdd to do the equivalent of "(cd /var/yp; make passwd)" whenever yppasswd is invoked from any client. Joe Smith (408)922-6220 | SMTP: JMS@F74.TYMNET.COM or jms@gemini.tymnet.com BT Tymnet Tech Services | UUCP: ...!{ames,pyramid}!oliveb!tymix!tardis!jms PO Box 49019, MS-D21 | PDP-10 support: My car's license plate is "POPJ P," San Jose, CA 95161-9019 | humorous dislaimer: "My Amiga speaks for me."