HPE 9000 and HPE e3000 Servers
1752800 Members
6110 Online
108789 Solutions
New Discussion юеВ

Re: root password disabled - trusted

 
Idham
Frequent Advisor

root password disabled - trusted

Hi,

Somehow my HPUX 11.23 (rx2620 trusted) root's password disabled today. Can anyone assist on how to reboot the system properly. FYI, in /etc/shutdown.allow contain nothing/blank.

= 5 points

Correct me if I'm wrong with the steps below.
1- reboot single user
2- mount /usr
3- /usr/bin/modprpw -k
(anything missing here?) = 5 points
4- passwd root
5- reboot

Please help.

Thanks in advance
4 REPLIES 4
Matti_Kurkela
Honored Contributor

Re: root password disabled - trusted

A simpler procedure:

1 - go to the system console
2 - login as root (even if root account is disabled, it will work on the console!)
3 - passwd root

No reboot needed.

MK
MK
Idham
Frequent Advisor

Re: root password disabled - trusted

Thanks MK.

But still i cannot login from the console.
Is there any diff between serial console or vga console?. I dont thinks so.

So ..i think i need to do force reboot.
Anyone can give any suggestion before I proceed with the last option......

S.O.S
Asif Sharif
Honored Contributor

Re: root password disabled - trusted

Hi Idham,

What console you are currently login, Use serial.If you are still not able to login through console then boot the server into single user mode and reset the password.

Regards,
Asif Sharif
Regards,
Asif Sharif
Matti_Kurkela
Honored Contributor

Re: root password disabled - trusted

The procedure for a forced reboot:
1 - reboot to single-user
2 - mount -o remount,rw /
3 - mount /usr
4 - /usr/lbin/modprpw -k root
5 - /usr/lbin/modprpw -v root
6 - passwd root
7 - "init 3" to let the system resume normal startup, or reboot.

Without step 2 you cannot make any changes to the password database.

Step 4 unlocks the root account if it has become locked.
Step 5 refreshes the account if someone has set a lifetime limit on it.

MK
MK