Operating System - HP-UX
1753512 Members
5254 Online
108795 Solutions
New Discussion юеВ

No password prompt at login

 

No password prompt at login

I have and hp rp2470 running HP release B.11.11 that I am unable to login to. I've tried telnet and the serial console. At the login prompt, it doesn't seem to matter what userid I enter, I immediately get "Login incorrect". I don't even get a password prompt. Any ideas?
12 REPLIES 12
Johnson Punniyalingam
Honored Contributor

Re: No password prompt at login

>>>it doesn't seem to matter what userid I enter, I immediately get "Login incorrect". >>>

possiblities are :-

1. /etc/passwd must have been corrupted

check file permission of the /etc/passwd
check the ownership for /etc/passwd

2. file permission to / file system someone must have changed accidently
3. if you have down-time to the server, you reboot the server to single-user

or you can try rlogin / remsh for other server which have access to server which "unable to login"

Thanks,
Johnson


Problems are common to all, but attitude makes the difference
SKR_1
Trusted Contributor

Re: No password prompt at login

Go to single user mode and check for /etc/passwd file. You can copy it from another server if having same users and groups.

Thanks

SKR
Torsten.
Acclaimed Contributor

Re: No password prompt at login

What terminal emulation you are using? I have seen this with hyperterminal and wrong settings - it gives a double return, in this case an empty password. Check the settings or try with putty.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Suraj Singh_1
Trusted Contributor

Re: No password prompt at login

Check the permission for / directory:

# pwd
/
# ls -ld /
drwxr-xr-x 19 root root 8192 Nov 4 15:24 /
What we cannot speak about we must pass over in silence.
Bill Hassell
Honored Contributor

Re: No password prompt at login

And in single user mode, check that the root filesystem (/) is not full. You'll need to mount /usr, /var and /tmp manually, then type:

bdf /


Bill Hassell, sysadmin

Re: No password prompt at login

Thanks for all the quick responses. I was able to boot in single user mode and discovered that my /etc/passwd file was empty. I tried to recreate the important entries from another server. I even used "passwd root" to make sure my root password was encrypted properly. When I rebooted normally. I still have the same problem. No password prompt:

Console Login: root
Login incorrect
login:
Avinash20
Honored Contributor

Re: No password prompt at login

You could have restored the default passwd file available at /usr/newconfig/etc/passwd

Anyways, we could boot the server into multiuser mode without authentication

1. Boot the server into single user mode
mount the FS
2. Copy the default passwd file to /etc
3. reset the passwd of root
# passwd -d root

Started the Scripts Manually
#cd /sbin/rc1.d
#for i in S*
>do
>./$i start
>done

#cd /sbin/rc2.d
#for i in S*
>do
>./$i start
>done

. Started the Scripts Manually to check whether system is coming to
network or not
#cd /sbin/rc1.d
#for i in S*
>do
>./$i start
>done

#cd /sbin/rc3.d
#for i in S*
>do
>./$i start
>done

>> Check if /etc/nsswitch.conf is having the following entry:
hosts files
and not the following
hosts compact files
>> If no nsswitch.conf, then copy
# cp /etc/nsswitch.files /etc/nsswitch.conf

Run swverify to check for any issue with permission
# swverify \*
>>
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
OldSchool
Honored Contributor

Re: No password prompt at login

was this a trusted server? If so, there are other directories / files that might be corrupted as well

Re: No password prompt at login

No, this is not a trusted server.
Additionally, I can no longer use the passwd command to change passwords. I can use the -d option to delete passwords, but "passwd root" no longer prompts me for a new password (which worked fine this morning).