Solved

NIS on SunOS 4.1.3

Posted on 1997-08-25
8
319 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
Network it in WD Red

There's an industry-leading WD Red drive for every compatible NAS system to help fulfill your data storage needs. With drives up to 8TB, WD Red offers a wide array of solutions for customers looking to build the biggest, best-performing NAS storage solution.  

 
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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
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…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

911 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

25 Experts available now in Live!

Get 1:1 Help Now