cancel
Showing results for 
Search instead for 
Did you mean: 

Root passwd recovery

Jeremy Loukinas
Frequent Advisor

Root passwd recovery

I am looking for a real good article or how to on how to recover a root passwd. I know you boot of the cd etc.. but I am looking for an exact procedure if anyone has one.

Thanks
Jeremy Loukinas
8 REPLIES
harry d brown jr
Honored Contributor

Re: Root passwd recovery


What OS?

live free or die
harry
Live Free or Die
Jeremy Loukinas
Frequent Advisor

Re: Root passwd recovery

Forgot to mention this is on a Trusted HPux 11i server.
Pete Randall
Outstanding Contributor

Re: Root passwd recovery

Assuming it's HP-UX, boot the machine, interrupt the boot process (when the message saying you have 10 seconds to do so comes up), enter hpux -is at the ISL prompt. You'll be logged in as root once you come up in single user mode. Use the passwd command to change the passwd, then either reboot or enter "init 3" to get to multi user mode.


Pete

Pete
Sridhar Bhaskarla
Honored Contributor

Re: Root passwd recovery

Hi Jeremy,

On HP-UX, unless you disable "required root password in Singer User Mode" feature that is available through Trusted system, you don't need to boot through CD.

Boot the system, interact with ISL and boot in single user mode.

ISL>hpux -is

It will put you into single user mode without asking for the root password.

This is one of the reasons why the datacenters are to be physically secured and only few personnel are to be allowed.

If your system is trusted and the above feature is enabled, then you will have to boot through Recovery CD.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Ross Zubritski
Trusted Contributor

Re: Root passwd recovery

Jeremy,

You are going to need to boot into single user mode (hpux -is) to change your root pw.

Regards,

RZ
Robert-Jan Goossens
Honored Contributor

Re: Root passwd recovery

Hi jeremy,

Boot the system up in single user mode, interrupt the bootup proces and at ISL mode enter.

ISL> hpux -is

Now you can change the root password.

passwd root

Hope it helps,

Robert-Jan.
Jon Finley
Honored Contributor

Re: Root passwd recovery

I seem to remember that with a trusted system that you need to "untrust" it.

Boot to single-user mode.

/usr/lbin/tsconvert -r // to untrust the system.

passwd // change the password

/usr/lbin/tsconvert // set trusted mode.


Jon
"Do or do not. There is no try!" - Yoda
Jon Finley
Honored Contributor

Re: Root passwd recovery

This was for 10.20 but should still apply for a trusted system:


1. boot into single user mode.
2. 'untrust' via /usr/lbin/tsconvert -r
3. remove the root password from /etc/passwd
(i.e. root::0:3::/:/sbin/sh )
4. set trusted mode using /usr/lbin/tsconvert
5. log out as root
6. log in as root


Jon
"Do or do not. There is no try!" - Yoda