Operating System - HP-UX
1845716 Members
4574 Online
110247 Solutions
New Discussion

root password oh HP N-class server

 

root password oh HP N-class server

I recently change the root password of our HP N-class server. Now I am not able to login, when I type in the password it says login in correct. I think when I change the password I miss typed something. How can I change this. or to put a new password. Please help
no personal quote
11 REPLIES 11
Pete Randall
Outstanding Contributor

Re: root password oh HP N-class server

You'll need to boot into single user mode. Then you can re-issue the passwd command.

Pete

Pete
Vincent Farrugia
Honored Contributor

Re: root password oh HP N-class server

Hello,

When you change password, passwd asks you twice for the password to confirm it, so could it mean that you misspelt it twice in the same way?

Check for CAPS... password are case sensitive, so if it is on, password won't work.

HTH,
Vince
Tape Drives RULE!!!
Yogeeraj_1
Honored Contributor

Re: root password oh HP N-class server

hi,

You need to boot in single user mode and change the password.

BO PRI
Interact with ISL>Y
ISL>hpux -is

kernel loads
no login prompt
#passwd root

hope this help!
Best Regards
Yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Chris Wilshaw
Honored Contributor

Re: root password oh HP N-class server

If you reboot in single user mode, you will be able to set the password from there.

As the system is booting up, interrupt the boot sequence when the "press any key in 10 seconds" message is displayed.

Then type

bo pri

To boot from the primary disk.

Choose the option to interact with ISL, and type

hpux -is

This will then complete the boot sequence.
Carlos Fernandez Riera
Honored Contributor

Re: root password oh HP N-class server

Check [ENTER] as password ..!!!!
unsupported
Michael Elleby III_1
Trusted Contributor

Re: root password oh HP N-class server

Hello-

The first question I would like to ask is if this is a trusted system? If it is, then a reboot is not necessarily needed.

If it is, then reboot is not needed (HINT: the passwd field in /etc/passwd is a * for every account). Just restore this file: "/tcb/files/auth/r/root" from a recent backup, and your root login is restored, voila!

If not, then I would suggest as the other users have, to boot the system to single user, then reset the password..

Mike-
Knowledge Is Power
doug hosking
Esteemed Contributor

Re: root password oh HP N-class server

Also beware that the characters '#' and '@'
are not always interpreted consistently in passwords, for reasons that date back to the days when UNIX ran on consoles with paper.
(At one time these were the common character
delete and line kill characters.) If you were unfortunate enough to use one of those
characters in your password, you might
see the behavior you describe.

In that case, try putting a '\' before
the # or @ character when logging in.

There are also situations where conversions
to/from trusted mode can cause long passwords
(> 8 chracters) to not work as expected, due
to historical limitations on the way passwords
are internally stored. If you think you might be affected by this, try using only the first 8 characters of the long password.

In none of the suggestions above or by others
work, you might have to reboot the system
into single user mode to reset the password.




David Andrews_1
Advisor

Re: root password oh HP N-class server

Please note, if you are running sudo on your machine, then all you would need to do is run :

sudo passwd

The first password you would be asked for would be for your own user, then you would be asked to enter a new password for root.
Paula J Frazer-Campbell
Honored Contributor

Re: root password oh HP N-class server

TIP for changing the root password.


Open two root sessions.

On one change the password and logout.

login.

If you can login the OK

If not then your second open session can rescue you.



Paula
If you can spell SysAdmin then you is one - anon
Jeff Schussele
Honored Contributor

Re: root password oh HP N-class server

Hi Raghuram,

Also remember that if you have disabled direct root logins from anywhere other than the console (/etc/securetty), you'll get that msg if you're NOT logging root in from the console.
Try logging in as a normal user & su - root over to test the PW.

HTH,
Jeff (Been there - done that)
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Martin Johnson
Honored Contributor

Re: root password oh HP N-class server

I always recreate a pseudo root account (username, password, UID=0) to access the system when there are problems with the root account. It allows me to fix problems with the root account without having to reboot into single user mode - a good thing for a production box!

HTH
Marty