Operating System - HP-UX
1833992 Members
3599 Online
110063 Solutions
New Discussion

Re: ROOT account disabled

 
KAK
New Member

ROOT account disabled

Hi everybody,
Iam using hp unix ver 11.11 and the root is locked. On attempt to log through the console,it replies that the account is disabled.

The system was boot to single usermode at ISL prompt using hpux -is but it refuses the password to be change as it replies sorry whenever the requested old password is supplied. When i check /usr i discover there is nothing there after ls. So running /usr/lbin/modprpw -k root fails. An attempt to edit /tcb/files/auth/r/root also fails as the it does not allow for vi or more the file saying not found whereas the file is there if i change to the directory.Attempt also to add a new user with root id also fails as it does not allow useradd.

Pls anybody with another option? Before going back to the support cd 4 installtion
7 REPLIES 7
Ken Englander
Regular Advisor

Re: ROOT account disabled

You may have already done this, but you did not say if you mounted any filesystems. In 11.23, there is only one filesystem mounted (/, I think). /usr is not mounted when you are in single-user mode, so you will need to mount it manually.
A. Clay Stephenson
Acclaimed Contributor

Re: ROOT account disabled

Your problem when booting in single-user is that /usr is not yet mounted. After you get a shell prompt after doing your "hpux -is", do a "mount /usr" and a "mount /var". You will then be able to use vi and/or modprpw.
If it ain't broke, I can fix that.
Aussan
Respected Contributor

Re: ROOT account disabled

hello

/usr is not mounted in single user mode

try mounting /usr then run the modprpw -k root

The tongue weighs practically nothing, but so few people can hold it
Patrick Wallek
Honored Contributor

Re: ROOT account disabled

If you are in single-user mode, then you must mount all of your VG00 file systems.

Try this:

# vgchange -a y vg00
# mount -a

This will mount all VG00. If you get failure messages because other VG's are not active, you can ignore them.

Once everything is mounted, you can then try reactivating root with modprpw.
Tim Nelson
Honored Contributor

Re: ROOT account disabled

Even with the root account disabled it should allow console access.

Another option from single user is to edit the /tcb/files/auth/r/root and remove the encrypted password.

tsf_1
Frequent Advisor

Re: ROOT account disabled

At the single user mode prompt:
# mount -a
# /usr/lbin/modprpw -k root
After root is unlock, change root's password if you can't recall
# passwd root
-->here set new password

After root is unlock and password is reset, reboot to multiuser mode.
# shutdown -ry 0
be willing to do, be happy to bear
KAK
New Member

Re: ROOT account disabled

I have to close the thread because my colleague changed the password while i was away and when i resume he was away. It was a communication prob between us. He came back while i was in that process and we only launch SAM from one of the trusted system and reset the password. But the solutions offered by the forum were very fruitful to me.