Solved

NIS on SunOS 4.1.3

Posted on 1997-08-25
8
323 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Flexible connectivity for any environment

The KE6900 series can extend and deploy computers with high definition displays across multiple stations in a variety of applications that suit any environment. Expand computer use to stations across multiple rooms with dynamic access.

 
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
 
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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

Suggested Solutions

Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

752 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