1833883 Members
1840 Online
110063 Solutions
New Discussion

strange password problem

 
Victor Lee
Advisor

strange password problem

Hi

I have an HP L2000 running HP-UX 11.0. When users login their passwords are authenticated through NIS. There is one user in particular who can't log in to this machine using his current password stored in NIS (he gets login incorrect). However, he can login using his old password from 2 months ago. I checked the /etc/passwd file and there is no local entry for his account. nsswitch.conf passwd entry says "files nis". He can log into all other HP-UX machines using his current NIS password. Only this machine is acting weirdly. Any ideas what is causing this and how to fix it?

thanks
Victor
7 REPLIES 7
Rick Garland
Honored Contributor

Re: strange password problem

Is this a NIS client system?
When you do ypwhich is it bound to a valid ypserver?

How does the /var/yp/Makefile look? Modified recently?

A. Clay Stephenson
Acclaimed Contributor

Re: strange password problem

It's possible that there is a stale entry in the pwgrd daemon. Do a ps -ef | grep pwgrd on this host and note the PID of the daemon. KIll it. (It's quite safe to kill it and the machine will run just fine without it as UNIX boxes did for decades before there was a pwgrd.) If this fixes your problem then you canchoose to restart the daemon; if not, then you will need to force a yppush of the passwd map.
If it ain't broke, I can fix that.
Rick Garland
Honored Contributor

Re: strange password problem

Here is a short script that can tell you which ypserver the ypclient is bound to. Any clues?



#!/bin/sh

HOSTS="sysA sysB sysC"

(for SYSTEM in $HOSTS
do
remsh $SYSTEM -n ypwhich
done) | grep -v 'not bound' | sort | uniq -c

Sandman!
Honored Contributor

Re: strange password problem

I would hesitate to say this, since the problem manifests itself only for one user. However make sure you are up to date with your patches for the login program specifically PHCO_19292, which is a cumulative login patch, by running the following at the command line:

# swlist -l patch PHCO_19292


regards!
Victor Lee
Advisor

Re: strange password problem

thanks to all for your replies.

I found out the problem: I have a master NIS server and a slave. The problem machine is bound to the slave, and the slave is not getting updated.

So now I have a new problem: Any ideas why the slave is not getting updated whenever I make changes on the master?
MarkSyder
Honored Contributor

Re: strange password problem

There should be a cron job(s) on the slave to pull information over from the master. Is it there?

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
Venkatesan_5
Frequent Advisor

Re: strange password problem

Just do all activities given below , which may help u.....


1. check the /etc/rc.config.d/namesvrs - file has all details properly mentioned....like NIS_DOMAIN...etc...
2. check the domainname
3. you can download NIS maps by initiating a command --- ypinit -s .
once map files are thru then this problem will not occur further...
4.check /var/yp/securenets--- has proper network address given
5.check whether NIS_SLAVE_SERVER is set to 1 in /etc/rc.config.d/namesvrs file and also execute the script also
# /sbin/init.d/nis.server stop
# /sbin/init.d/nis.server start


regds
Venkatesan