Operating System - HP-UX
1834642 Members
3264 Online
110069 Solutions
New Discussion

forgot root password and root account has been disabled

 
SOLVED
Go to solution
Bing Wong
Frequent Advisor

forgot root password and root account has been disabled

I know I have to reboot the server in single user mode to change password. But if the root account is also disabled, can I still change it?

Thank you very much.
Bing
1 REPLY 1
Patrice Le Guyader
Respected Contributor
Solution

Re: forgot root password and root account has been disabled

Hi,

You can unlock the root account by using this
# /usr/lbin/modprpw -k root

http://docs.hp.com/en/B2355-90691/modprpw.1M.html

if you have access. You must be root to run this. Else If you don't have sudo set up or have another root id set, the other option is to boot off of the Install/Support Media for your release and update the password file. Look at the doc ID OZBEKBRC00000582 if you don't know how to do it:

http://www5.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000079996291

Hope this helps
Kenavo
Pat
Good judgement comes with experience. Unfortunately, the experience usually comes from bad judgement.