Operating System - HP-UX
1837655 Members
2722 Online
110117 Solutions
New Discussion

Help! Lost root pasword !!!

 
Duc Vu
New Member

Help! Lost root pasword !!!

I use HP-UX 11.0.
Someone has changed my root pasword.
please counsel me recover.
Thanhk a lot.
4 REPLIES 4
Chris Anoruo_1
Frequent Advisor

Re: Help! Lost root pasword !!!

Hi Duc,

Boot through ISL to single user mode. Do a mount all command and change your
password.
Or in the alternative restore the last backup of /etc/passwd and/or /tcb if it
is a trusted system.

Have a nice day!
Atif Malik_2
Frequent Advisor

Re: Help! Lost root pasword !!!

If the system is trusted and it requires a passwd to go into single user mode:

Do the following:

-- Boot fro support media, run recovery shell
-- Mount and fsck vg00
-- run SAM and turn off the flag that requires login at single user mode
-- reboot to single user mode
-- vi /tcb/files/auth/r/root and remove the passwd filed (u_pwd:=)
-- init 3
-- change root's passwd
-- run SAM and turn on the flat that requires login at single user mode.

Hope this helps,
Atif
Sy-hoang Truong_1
Occasional Advisor

Re: Help! Lost root pasword !!!

Hi
I believe that Atif's solution gave you in which you solved already your
problem.

Please create a root equivalent in order to avoiding this problem in the
future.

By using vi to edit the /etc/passwd file and copy root line and change root
userid by vuduc id example and change passwd for vuduc of course.


Good luck
Trinh Hung
New Member

Re: Help! Lost root pasword !!!

-restart system
-press ESC twice to dirupt normal boot
-at prompt type boot primary ,then hit enter
- type y to interact with isp
- type hpux -is to go to single user mode
- Now you are "su"
-create a user with root group equipvalent
- restart system
- login as new user just created
- use SAM to convert system back to standard(non trusted)
- restart system in single user mode(1-6 above)
- Now you can assign root password w/o being asked for the old.