1825775 Members
2461 Online
109687 Solutions
New Discussion

root account disabled

 
SOLVED
Go to solution
balaji_vvv
Frequent Advisor

root account disabled

I have a trusted HPux 11iv1 system with root account got disabled and i dont have access to console.

But fortunately, i can sudo to root and its working fine. Will modprpw -k root will work to get my root password back?? This is a prod, so i dont want to take a chance! and also i cant reboot.
4 REPLIES 4
Patrick Wallek
Honored Contributor
Solution

Re: root account disabled

Yes, doing 'modpfpw -k root' will enable the root id again.

There is no harm in doing this and no need to reboot.

To verify that the id is unlocked do a '/usr/lbin/getprpw -m lockout root' and of the Lockout string is all zeros (like 00000000) then the id is fine and you should be able to log in directly again.
Julián Aimar
Frequent Advisor

Re: root account disabled

execute

/usr/lbin/modprpw -l -k root

man modprpw

-k To unlock/enable a user's account that has become disabled,
except when the lock is due to a missing password or * password.

May be combined with options -l, -m, -n.

-l This option specifies to modify data for a local user. It cannot
be specified with the -n option. This option must be specified
with other options.


Saludos

JEA
balaji_vvv
Frequent Advisor

Re: root account disabled

Thanks you both. It works and i reset the root password, thanks to sudo.
balaji_vvv
Frequent Advisor

Re: root account disabled

see above.