Operating System - HP-UX
1753819 Members
8962 Online
108805 Solutions
New Discussion юеВ

Re: How to recover password

 
SOLVED
Go to solution
Jestin John Chacko
Regular Advisor

How to recover password

Dear,

I had lost the root password of my server which is working with 11iv23 os ,can anybody tell how to recover the password,currently no sessions is running so as to enter into the single user mode for changing password.

Please help me in this
5 REPLIES 5
Horia Chirculescu
Honored Contributor

Re: How to recover password

Hello,

Boot in single user mode

Then run passwd in order to set another passwd for root account.

If it ask for old password, while changing the password do :

/usr/lbin/modprpw -k root
/usr/sam/lbin/usermod.sam -F -p "" root
/sbin/passwd root


Best regards,
Horia.
Best regards from Romania,
Horia.
Durvesh Mendhekar
Regular Advisor

Re: How to recover password

Hi,

Boot system at console, you may need to use the power switch if you don't have root access.

Note that if you actually know the root password, and its been deactivated, then logging in at the console "recovers it"

interupt at the 10 second prompt

bo

Y to the interact question.
hpux -is

passwd

If you have password protected single user mode, then you must boot off a Core OS cd and null out the password section of root user in /etc/passwd

To get vi in single user mode:
mount /usr
mount /var

vi /etc/passwd

Durvesh
Johnson Punniyalingam
Honored Contributor

Re: How to recover password

Interupt aboot up

Boot up server in maintenance mode
Hit any key to interrupt boot process.

Main Menu > bo pri
Interact with IPL (Y or N)?> y
ISL>hpux -is
# mount -a
# passwd root

Problems are common to all, but attitude makes the difference
Johnson Punniyalingam
Honored Contributor
Solution

Re: How to recover password

if its your's trusted System

Main Menu > bo pri
Interact with IPL (Y or N)?> y
ISL>hpux -is
# mount -a
# /usr/lbin/modprpw -k root
# cd /tcb/files/auth/r/root
# rm root

#passwd root

Best of Luck, :)
Problems are common to all, but attitude makes the difference
Jestin John Chacko
Regular Advisor

Re: How to recover password

Dear

Thanks to all i had solved the issue Thanks a lot

A special thanks to hp itrc forums