Operating System - HP-UX
1751809 Members
4496 Online
108781 Solutions
New Discussion

Re: HPUX root password recovery

 
SUD1
New Member

HPUX root password recovery

Hi,

 

I need to recover root password of rx4640

I tried booting in single user mode but asks password there also since it's trusted system

Later booted the server using recovery CD but coud not run chroot /ROOT /sbin/sh because root partition was not mounted correctly.

 

Is there any way we can recover the root password

 

 

3 REPLIES 3
Steven Schweda
Honored Contributor

Re: HPUX root password recovery

> I need to recover root password of rx4640

   I know nothing, so I'd do a Web search for keywords like, say:
      hp-ux lost root password
or:
      hp-ux lost root password trusted

> Later booted the server using recovery CD but coud not run chroot
> /ROOT /sbin/sh because root partition was not mounted correctly.

   As usual, showing actual commands with their actual output can be
more helpful than vague descriptions or interpretations.  Usually a good
start:

      uname -a

   "cou[l]d not run" is not a useful problem description.  It does not
say what you did.  It does not say what happened when you did it.

   "root partition was not mounted correctly" means what, exactly, and
how did you determine that?

Milos_Lucic
Advisor

Re: HPUX root password recovery

Process to recover from a lost/forgotten root password

  1. Power off the server
  2. Power on the server
  3. Interupt the boot process during the 10 second interval (display will indicate this on the screen)
  4. bo pri
  5. Answer yes to interact with the ipl
  6. At the prompt “hpux -is” for single user mode
  7. cd /sbin
  8. passwd root  and  follow prompts to put in new password
  9. shutdown -r 0  to reboot to multiuser mode

 

 

Trng
Super Advisor

Re: HPUX root password recovery

Login to single user mode 

 

then ,

 

mount /var
mount /tmp

You may need to use the fill path of the mount command.

vi /tcb/files/auth/r/root

change:
:u_pwd=YfdfdTmswL7o/.:\

to

:u_pwd=:\

null it out and save it.

 

 

then simply u can change the passwd as it wont ask old root passwd 


administrator