NIS map updates, but change doesn't work
2007-12-24 19:21:00
I've been using NIS for alot of years now but this is a new one on me.
Here's
what I have:
NIS Master - Ultra 10 running Solaris 7 (+ latest recommended patch cluster)
NIS Slave - Ultra 10 running Solaris 7 (+ latest recommended patch cluster)
It's a new NIS environment so currently these are the only two machines
running
NIS.
In the passwd NIS map I've my login entry:
grichardson:x:152:108:Gary Richardson:/home/grichardson:/bin/csh
I changed my login shell from /bin/csh to /bin/sh (just as a test). I cd to
/var/yp
and do a "make" to push any maps that need updating. If I then login to
either
the master or slave I'm still logging in with CSH even though the NIS map
shows
the change:
{grandteton:1} echo $shell
/bin/csh
{grandteton:2} whoami
grichardson
{grandteton:3} ypmatch grichardson passwd
grichardson:<password removed>:152:108:Gary
Richardson:/home/grichardson:/bin/sh
{grandteton:4}
It'll take about 5 minutes (give or take a few minutes) before the change
takes
effect and I then login with /bin/sh. Then, if I change the NIS entry BACK,
it'll take another
5 minutes or so for it see the change.
Now, if I make changes to the group NIS map, or any other map for that
matter, the
change is immediate. It only seems to be with the login shell. Heck, if I
do:
yppasswd grichardson
This change is immediate. Again, it only seems to be with the login shell.
On the NIS master I'm running the following processes:
root 131 1 0 Feb 06 ? 0:01 /usr/lib/netsvc/yp/ypserv -d
root 141 1 0 Feb 06 ? 0:00 /usr/lib/netsvc/yp/ypxfrd
root 8287 1 0 08:36:25 ? 0:00 /usr/lib/netsvc/yp/ypbind
root 8480 1 0 08:45:15 pts/1 0:00
/usr/lib/netsvc/yp/rpc.ypupdated
root 9641 1 0 11:25:48 ? 0:00
/usr/lib/netsvc/yp/rpc.yppasswdd -D /etc/yp -m
Yes, the yppasswdd line is correct. I store all my NIS text files in
/etc/yp. I want them separate
from the files in /etc.
I just don't understand why it's taking so long for the shell change to take
effect. Anyone have
any ideas? I'm so close to having it all working so I can roll it out to the
rest of the
unix machines. But this one issue is bugging the heck out of me and I don't
want to roll it
out 'til I get this figured out.
I'll summarize for sure. Thanks all!
-Gary
Gary Richardson
Sr. Unix Administrator
Watercove Networks, Inc.
Email: grichardson at watercove.com
Phone: 978-608-2113
Fax: 978-256-9852
Comments
Got something to say?
You must be logged in to post a comment.

