Solved

NIS on SunOS 4.1.3

Posted on 1997-08-25
8
317 Views
Last Modified: 2013-12-23
When creating a new account, after running make on /var/yp on NIS server, the new id appears in passwd, group, aliases maps. When you try to login as new user, or su, you get "unknown login". When changing existing users passwords, ypasswd indicats NIS change on correct server. However, only the old password works. Another ypserver on the sub-net had been disabled a few weeks ago (friendly but renegade). Ypwhich on the clients and NIS server yields correct server name. HELP!
0
Comment
Question by:homepark
8 Comments
 
LVL 51

Expert Comment

by:ahoffmann
ID: 1582315
Does your NIS server use the files (passwd, group, aliases) from /etc, or does it have it private ones in /var/yp?
Have your client enabled NIS in /etc/{passwd,group}?
I think it must be
+::0:0:::
in passwd
and
+:
in group


0
 

Author Comment

by:homepark
ID: 1582316
In answer to your questions:
Map files are in /var/yp/domainname on NIS server. Clients have NIS enabled as you indicated with no entries duplicated on maps. Clients running ypbind. Ypcat of passwd, aliases, and group, from clients show new account key and values.
0
 
LVL 51

Accepted Solution

by:
ahoffmann earned 200 total points
ID: 1582317
My experiences with the roots of NIS (SunOS 4.x) are a few years ago. But I remeber that there was also a file /etc/publickey (to be modified with newkey, chkey, etc.); if this file is used, it must also be propagated by yp. I'm not shure about what file will be changed by yppasswd: passwd and/or publickey.
0
 
LVL 2

Expert Comment

by:df020797
ID: 1582318
yp dont update in "real time" You have to wait a bit... even if you run a make in /var/yp. FOr instant update simply kill the ypserv daemon and restart it.

0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 51

Expert Comment

by:ahoffmann
ID: 1582319
df, I remember that my SunOS 4.0.x manual also suggest to kill and restart ypbind and/or ypserv if somthing goes wrong.

Be lucky, M$'s NT must be rebooted always ever :-)
0
 

Author Comment

by:homepark
ID: 1582320
We are on the right track. YP appears to cache the old info for some x time. However, this is a new behavior.
0
 
LVL 2

Expert Comment

by:pxh
ID: 1582321
Does your server run the yppasswd daemon, i.e.
/usr/etc/rpc.yppasswdd  (with the appropriate parameters).

I think without that daemon, NIS will not be notified about password changes.

Peter

0
 

Author Comment

by:homepark
ID: 1582322
Yes, yppasswdd is running. I did find that by stopping and restarting the ypserver did move things along. Had to do it twice, once to setup the account, and a second time to add the password. However, this behavior of 'cache-ing" the old info is relatively new. Hence the mystery
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Join & Write a Comment

Don’t let your business fall victim to the coming apocalypse – use our Survival Guide for the Fax Apocalypse to identify the risks and signs of zombie fax activities at your business.
PRTG Network Monitor lets you monitor your bandwidth usage, so you know who is using up your bandwidth, and what they're using it for.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now