Monday, November 11, 2013

How to recover root password in Trusted system HP-UX 11i

How to recover root password in Trusted system HP-UX 11i
restart machine.

If you have a console ctrl-b, login and then use the rs command.
Power switch only if no user can soft boot the machine.
Interupt at the console at the 10 second prompt

BO

Y Interact

hpux -is

You will now boot single user mode.
May need to run fsck command, if you run mount got error.
mount /usr
mount /var
mount /tmp

You may need to use the fill path of the mount command.
TERM=vt100; export TERM
/usr/bin/vi /tcb/files/auth/r/root

change:
:u_pwd=YfdfdTmswL7o/.:\
to
:u_pwd=:\

null it out and save it.
reboot
after reboot, login as root without password.
passwd

Set the root password and remember it this time.

Done.



Unable to login as root ( Account is disabled - see Account Administrator)

1) direct login of root via telnet is restricted to the system console via the /etc/securetty file
2) account is disabled but the disable is overridden if login is from /dev/console.
# /usr/lbin/modprpw -k root

System Shutdown

To shut down HP-UX for power-off, you can do any of the following:
# init 0
# shutdown -h -y now

To shut down and reboot HP-UX:
# reboot
# shutdown -r -y now

To shut down HP-UX to single-user mode:
# init S
# shutdown -y now
# shutdown 0

The -h option to the shutdown command halts the system completely but will prompt you for a message to issue users. The -y option completes the shutdown without asking you any of the questions it would normally ask. 

No comments:

Post a Comment

  How to Change Instance Type & Security Group of EC2 in AWS By David Taylor Updated April 29, 2023 EC2 stands for Elastic Compute Cloud...