How to reset root password on a HP-UX PA-RISC system?
-
Login to the console.
Enter the command menu:
MP> CMHalt the system:
CM> RSGo back to the MP> prompt by typing CTRL B then go back to the console:
MP> COWhen the system comes back, you will be asked:
"To discontinue, press any key within 10 seconds."
Press any key
Main Menu: Enter command or menu > bo
Interact with IPL (Y, N, or Cancel)?> y
Booting...
Boot IO Dependent Code (IODC) revision 1
HARD Booted.
ISL Revision A.00.43 Apr 12, 2000
ISL> hpux -is*Once the system has come up, you will have to mount the following file systems: /usr, /var, /var/tmp, /opt and /tmp. You will also have to fsck them.
# TERM=vt100 # export TERM
Find out which file systems need to be mounted:
# cat /etc/fstab
Mount the relevant file systems:
# mount /dev/vg00/lvol7 /usr UX:vxfs mount: ERROR: V-3-21268: /dev/vg00/lvol7 is corrupted. needs checking # fsck /dev/vg00/lvol7 log replay in progress replay complete - marking super-block as CLEAN # mount /dev/vg00/lvol7 /usr # mount /dev/vg00/lvol9 /var UX:vxfs mount: ERROR: V-3-21268: /dev/vg00/lvol9 is corrupted. needs checking # fsck /dev/vg00/lvol9 log replay in progress replay complete - marking super-block as CLEAN # mount /dev/vg00/lvol9 /var # mount /dev/vg00/lvol11 /var/tmp UX:vxfs mount: ERROR: V-3-21268: /dev/vg00/lvol9 is corrupted. needs checking # fsck /dev/vg00/lvol11 log replay in progress replay complete - marking super-block as CLEAN # mount /dev/vg00/lvol11 /var/tmp
Repeat with /opt and /tmp
Remove root password:
# cd /tcb/files/auth/r # vi root
Remove the line beginning with :u_pwd
Save the file and exit# passwd root
Type your chosen password. Make sure there is a numeric character.
Reboot the system:
# shutdown -r
NOTE: if your system isn’t a Trusted Computer Base system, there won’t be a /tcb directory. Therefore, you will have to:
# vi /etc/passwd
Remove the password field from the root entry and save the file.
Reboot the system:
# shutdown -r
When the system comes back up:
# passwd root
Type your chosen password. Make sure there is a numeric character.
© Lightnetics 2024