1846576 Members
1678 Online
110256 Solutions
New Discussion

Re: Reset root password

 
M.M. Oee
Contributor

Reset root password

The password for root has been forgotten, the user "root" was unable to login to the system which is running on HP-UX11. How should i reset the password for root. What is the procedure? Please help. Thanks
5 REPLIES 5
Sridhar Bhaskarla
Honored Contributor

Re: Reset root password

Hi,

Only way is to reboot the box into single user mode. It should put you through root's session where you can change the password. Reboot the server and interact with ISL. At the ISL prompt use

ISL>hpux -is

Once it is in single user mode, you can change the password. Once it is done, get to multi-user mode by typing "init 3".

However, if your system is trusted and if it has been configured to ask for password in single user mode, it won't work. In this case, you would need to boot from a recovery CD and change the password.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Pete Randall
Outstanding Contributor

Re: Reset root password

You need to reboot in single user mode. Boot the machine, interrupt the process at the "10 second" prompt, interact with ISL, enter "hpux -is" at the ISL prompt. You'll come up already logged in as root. Simply use the passwd command to reset the password and then reboot again to get back to normal, multi-user mode.


Pete

Pete
Marco Santerre
Honored Contributor

Re: Reset root password

You have to reboot to single user mode, and then log on to root.. once you have done that you can enter passwd root to change your password and reboot.
Cooperation is doing with a smile what you have to do anyhow.
Geoff Wild
Honored Contributor

Re: Reset root password

As others have said, boot to single user mode - from the connole, interupt the boot sequence when it says "press any key in 10 secs to discontinue.

Then BO PRI

The at ISL> hpux -is

Then change password:

# passwd

Then go to multi user with either a reboot or

# init 3

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Todd McDaniel_1
Honored Contributor

Re: Reset root password

I found this document posted on another thread... but you must have the tty defined before you need it!


Must at least be a N-class or later.
Unix, the other white meat.