Operating System - HP-UX
1825766 Members
2083 Online
109687 Solutions
New Discussion

Re: Root Account disabled

 
Anand Sreenivasan
Regular Advisor

Root Account disabled

Guys,
I am running a trusted system and I have lost access to root, I tried the single user mode but When I tried to enable the root account, It said modprpw not found. Do I have to mount any filesystems in single user mode before running this command. Any help is appreciated. Thanks.
11 REPLIES 11
Juan M Leon
Trusted Contributor

Re: Root Account disabled

Do you have sudo or pbsu, if you do use that way, otherwise for next time I will suggest to install either software.

if you go in single user mode, I think you still need to mount /usr to use modprpw.

Good luck.

Also will suggest to generate a trusted key using ssh.
Pete Randall
Outstanding Contributor

Re: Root Account disabled

Do a "mount -a " first, that should fix it.


Pete

Pete
Gavin Clarke
Trusted Contributor

Re: Root Account disabled

Morcos
Super Advisor

Re: Root Account disabled

Hi,
/usr/lib/modprpw, so I think you should mount /usr.

HTH
Ziad
Stephen Keane
Honored Contributor

Re: Root Account disabled

modprpw is in /usr/lbin so you'll have to at least mount /usr/. You may as well do a mount -a to be safe.
Anand Sreenivasan
Regular Advisor

Re: Root Account disabled

I tried mount -a and it complained about dirty blocks. Should I run fsck on all the filesystems or only /usr is enough to run the modprpw command. Also, I have resetted the password and rebooted but the account is still disabled. I am sure I need to run modprpw command on a single user mode , Am I right ??
Juan M Leon
Trusted Contributor

Re: Root Account disabled

with only /usr/ you should be able to use modprpw. Also you can try to modify the /tcb/files/auth/r/root
and add @ simbol to the u_lock field
something like this
:u_lock@:
it maybe now like this
:u_lock:
it means is locked

good luck
Gavin Clarke
Trusted Contributor

Re: Root Account disabled

You should be able to login at the console even if the account is disabled.

I would just try mounting /usr first to see if it let me.
Vincente Fernandes
Valued Contributor

Re: Root Account disabled

As gavin mentioned you should be able to login as root from the console if you remember the root password.
Anand Sreenivasan
Regular Advisor

Re: Root Account disabled

I cannot log in as root through console also as the account itself is disabled. I think i have a better understanding on what needs to happen. I am going to try it this weekend. Appreciate all the help in real short time.

Brian Markus
Valued Contributor

Re: Root Account disabled

If you can get in as root, but not use the modprpw command, you can vi the file /tcb/files/auth/r/root (I think that's the directory don't hold me to it)

The disable status is in there. You can vi another file to see what enabled users look like. I did this once on a 10.20 box about 6 years ago.

Good luck.

-Brian.
When a sys-admin say's maybe, they don't mean 'yes'!