Operating System - HP-UX
1835949 Members
2505 Online
110088 Solutions
New Discussion

HPUX 11.00 : Trusted System Root Account Disabled

 
SOLVED
Go to solution
LG Porter
Frequent Advisor

HPUX 11.00 : Trusted System Root Account Disabled

I have N4000 server running HPUX 11.0 configured as a stand alone "trusted" system. The root account has been disabled thus no one can login or su to the root account. What is the best method for resetting the root account on a trusted system?
6 REPLIES 6
Rajeev  Shukla
Honored Contributor

Re: HPUX 11.00 : Trusted System Root Account Disabled

Go to the console and login as root if you remember the password. The root though locked is allowed on console so login from there if you know the password. If you dont know the password then the only option left is to reboot the machine and go to single user mode and then change the password using /sbin/passwd

Cheers
Rajeev
KCS_1
Respected Contributor

Re: HPUX 11.00 : Trusted System Root Account Disabled

Hi,

Go in to single mode and then
#cd /tcb/files/auth/r dir and vi the root file.

make :u_pwd=aKYOsuz9RLCQU:\ look like :u_pwd=:
Clear the field and Save the file

#passwd new_password

#init 3


Easy going at all.
Scott Van Kalken
Esteemed Contributor

Re: HPUX 11.00 : Trusted System Root Account Disabled

if you reboot into single user mode, you'll either have to edit the root tcb file - or untrust the system, change the password, then retrust the system.
Rajeev  Shukla
Honored Contributor
Solution

Re: HPUX 11.00 : Trusted System Root Account Disabled

Even if the system is trusted /usr/bin/passwd wont allow to change the password but /sbin/passwd does and you dont need to untrust and trust the system.

The best is coz you have just locked the root account go to console or use your webconsole and login as root and this is allow you to login then run
/usr/lbin/modprpw -k root
to unlock the root account

Rajeev
Michael Elleby III_1
Trusted Contributor

Re: HPUX 11.00 : Trusted System Root Account Disabled

Hello-

This one is easy if you have a recent backup of your 'trusted' system. On all my trusted systems I try to keep a recent backup of the root file system which includes the /tcb directory.

In addition, on my all of my systems (trusted or non-trusted), I have a unix workstation on my desk where I maintain a root login for just this occasion, as well as other administrative tasks.

Restore the file /tcb/files/auth/r from backup and your root account is restored. Voila! Well, hopefully you remember what the root password was when the backup was completed.

Mike-
Knowledge Is Power
Michael Elleby III_1
Trusted Contributor

Re: HPUX 11.00 : Trusted System Root Account Disabled

Hello-

Made a typo in the file to restore, the file spec should be:

/tcb/files/auth/r/root

Mike-
Knowledge Is Power