How to reset root password on a HP-UX Integrity system
Login to the console.
Enter the command menu:
MP> CM
Halt the system:
CM> RS
Go back to the MP> prompt by typing CTRL B then go back to the console:
MP> CO
When the system comes back with a series of boot options, highlight the HPUX boot option, click enter and click enter again to interrupt the boot process. Then boot in single user mode:
HPUX> 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 /usrUX:vxfs mount: ERROR: V-3-21268: /dev/vg00/lvol7 is corrupted. needs checking
# fsck /dev/vg00/lvol7log replay in progress
replay complete - marking super-block as CLEAN
# mount /dev/vg00/lvol7 /usr
Enter the command menu:
MP> CM
Halt the system:
CM> RS
Go back to the MP> prompt by typing CTRL B then go back to the console:
MP> CO
When the system comes back with a series of boot options, highlight the HPUX boot option, click enter and click enter again to interrupt the boot process. Then boot in single user mode:
HPUX> 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 /usrUX:vxfs mount: ERROR: V-3-21268: /dev/vg00/lvol7 is corrupted. needs checking
# fsck /dev/vg00/lvol7log 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
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/lvol11log replay in progress
replay complete - marking super-block as CLEAN
# mount /dev/vg00/lvol11 /var/tmp
UX:vxfs mount: ERROR: V-3-21268: /dev/vg00/lvol9 is corrupted. needs checking
# fsck /dev/vg00/lvol11log 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 rootRemove the line beginning with :u_pwd
Save the file and exit
# passwd rootType 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/passwdRemove the password field from the root entry and save the file.
Reboot the system:
# shutdown -r
When the system comes back up:
# passwd rootType your chosen password. Make sure there is a numeric character.
Remove root password:
# cd /tcb/files/auth/r
# vi rootRemove the line beginning with :u_pwd
Save the file and exit
# passwd rootType 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/passwdRemove the password field from the root entry and save the file.
Reboot the system:
# shutdown -r
When the system comes back up:
# passwd rootType your chosen password. Make sure there is a numeric character.
No comments:
Post a Comment