1837651 Members
2928 Online
110117 Solutions
New Discussion

Re: ROOT ACCOUNT EXPIRED

 
SOLVED
Go to solution

ROOT ACCOUNT EXPIRED

Hello.

We have a server that's not been used for a long time, and the root account has been disabled:

$ su
Password:
Account is disabled - see Account Administrator
su: Sorry

How can I enable root? It's a HP-UX 11.11.

Thanks.
5 REPLIES 5
VK2COT
Honored Contributor

Re: ROOT ACCOUNT EXPIRED

Hello,

There is a very simple resolution:

Log in at the console. It will let
you log in as root even though the
account is disabled.

Ahh, how many times I have done it
for various customers :)

Best wishes,

VK2COT
VK2COT - Dusan Baljevic
John Payne_2
Honored Contributor
Solution

Re: ROOT ACCOUNT EXPIRED

Victor,

If you don't have console access, or don't have the root password, but you do have some sort of other root escalation capability (you can become root in some way, shape, or fashion), then become root, and run '/usr/lbin/modprpw -k root'. Then find out who or what has disabled the root account for you, and correct the problem so that it doesn't happen again.

Hope it helps
John
Spoon!!!!

Re: ROOT ACCOUNT EXPIRED

I have not root access at the console, nor any means to become root, I only have one account but doesn't have root capabilities.

This server has a CDE console, I reset the system, but I couldn't stop the boot sequence since no messages appeared on the screen.
Bill Hassell
Honored Contributor

Re: ROOT ACCOUNT EXPIRED

Since this is not a server but a workstation, you'll have to reboot, interrupt the boot process when it says you haver 10 seconds to do so, then boot into single user mode with the hpux -is command. Once in single user mode, use the command:

/usr/lbin/modprpw -k root

to re-enable the root user. This cannot be done remotely -- it must be done at the workstation's keyboard.



Bill Hassell, sysadmin

Re: ROOT ACCOUNT EXPIRED

Thanks to all. I'm closing this thread.
Bye.