Operating System - HP-UX
1829812 Members
1716 Online
109993 Solutions
New Discussion

root cannot login to server when shadow passwords are in affect

 
SOLVED
Go to solution
Henry F. Johnson
Frequent Advisor

root cannot login to server when shadow passwords are in affect

This morning I configured shadow passwords on an HP-UX 11i v2 server (rp7410). I left a terminal window open and I had fellow sysadmins try to login. They were unable to login using ssh to the server. Once I ran the pwunconv command they were able to get in using root's password. Please provide suggestions how we can over come this issue.
4 REPLIES 4
OldSchool
Honored Contributor
Solution

Re: root cannot login to server when shadow passwords are in affect

a little more info please.

is ssh configured for passwordless login (i.e. auth keys), or is it prompting for password

you can also try the "-v" switch of ssh to gather more info. multiple -v's are allowed
Jeeshan
Honored Contributor

Re: root cannot login to server when shadow passwords are in affect

Hi Henry

Change following line in the /etc/nsswitch.conf

passwd: compat
to
passwd: files

the conversion will work.

a warrior never quits
Henry F. Johnson
Frequent Advisor

Re: root cannot login to server when shadow passwords are in affect

The system prompts for a password when using ssh. I changes the settings in /etc/nsswitch.conf and now it works with no problem. Please tell me why this should work using files instead of compat.
Tim Nelson
Honored Contributor

Re: root cannot login to server when shadow passwords are in affect

compat is for NIS is it not ? Are you using NIS ?

I do not use the shadow option but instead the trusted and have not experienced if the pwconv changes the nsswitch.conf or not.