Operating System - HP-UX
1834459 Members
2757 Online
110067 Solutions
New Discussion

Re: NIS password not working

 
SOLVED
Go to solution
Asya
Regular Advisor

NIS password not working

Hi,

I just setup a new NIS master (Solaris 8).

None of the HP-UX servers work with users' passwords. ypcat passwd shows correct information and i see encrypted password correctly.

I've restarted NFS and NIS ... reset password from HP-UX box using yppasswd..same thing.

What else should i check? What could be the problem..?

/etc/nsswitch.conf file hasn't been modified. We did use different NIS master..and it worked there..so i just left it untouched.

Thank you!
6 REPLIES 6
Asya
Regular Advisor

Re: NIS password not working

to add...i just noticed that if i do su - user..i get su: Unknown id: error message....

ypcat passwd shows correct info.
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: NIS password not working

Since ypcat works and you haven't changed nsswitch.conf, the next thing that I would try is killing the pwgrd daemon on this client. You don't actually need this daemon since UNIX boxes ran for decades without it so try killing it and then try a login.
If it ain't broke, I can fix that.
Asya
Regular Advisor

Re: NIS password not working

Thank you Clay!

That did it!!!!

How can disable it from startup? Should i get rid of /sbin/init.d/pwgrd start up file?

Thank you again!!!
A. Clay Stephenson
Acclaimed Contributor

Re: NIS password not working

No; modify /etc/rc.config.d/pwgr and set PWGR=0. However, this may not be necessary. There is some benefit from using the pwgrd in that passwd and group lookups are cached and pwgrd works in an NIS environment. The passwd updates (even those done by yppasswd) should be honored. Look for any pwgrd patches for your OS version and apply them. The daemon may have only gotten itself into an insane state when you changed the NIS server and may now be fine. Another thing that can clobber pwgrd is if /var fills up even temporarily. In any event, you can complete disable this daemon in the worst-case and unless you have thousands of users, I doubt you will see any performance degradation.
If it ain't broke, I can fix that.
Asya
Regular Advisor

Re: NIS password not working

No, it's for local NIS..so about 20 users. I will just disable it. Thank you for your help:)
Asya
Regular Advisor

Re: NIS password not working

killed pwgrd daemon.