HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Need input username and pwd in single user mode

 
louisji2008
Frequent Advisor

Need input username and pwd in single user mode

Our HP-UX system is in trust mode.

The root account is locked after incorrectly input the root pwd for several times which exceeding the auth_MaxRetries value.

Finally we found the root's correct password.

We restart the system into single user mode and maintenance mode, it notified me input the username and password. We input the correct one, we got:

"Authentication incorrect"

 

How can we change the root's password and unlock the root account when the system is in Trust mode and the root account is locked?

Thanks a lot!

How time flies~~~
7 REPLIES
Bill Hassell
Honored Contributor

Re: Need input username and pwd in single user mode

It sounds like someone enabled single user login -- a very bad idea.
There isn't anything you can do on this system. The single user login was designed to prevent any possibility of getting to single user mode to modify the root password unless you know the single user login password. About all you can do is to take out the disk and put vgimport it into another HP-UX system. You could then mount the / volume and manually edit the passwd file.



Bill Hassell, sysadmin
louisji2008
Frequent Advisor

Re: Need input username and pwd in single user mode

Dear Bill,

 

How to edit the passwd ? Or can I just modify BOOT_AUTH setting in  /etc/default/security  file and boot it into single user mode ?

How time flies~~~
louisji2008
Frequent Advisor

Re: Need input username and pwd in single user mode

Or can I boot the system using a HP-UX OS DVD and modify the passwd ?

How time flies~~~
Bill Hassell
Honored Contributor

Re: Need input username and pwd in single user mode

>> can I just modify BOOT_AUTH setting in  /etc/default/security  file

Yes, that would turn off the single user login requirement.
Or you can boot the Install DVD and start a recovery shell.



Bill Hassell, sysadmin
Patrick Wallek
Honored Contributor

Re: Need input username and pwd in single user mode

If you are sure you know what the root password is, then you should be able to login via the systems console.

 

root login via the console should always work.  And the act of logging in to the console as root should also activate the root account.

 

 

louisji2008
Frequent Advisor

Re: Need input username and pwd in single user mode

Thank you!

We will try to boot from DVD 

How time flies~~~
louisji2008
Frequent Advisor

Re: Need input username and pwd in single user mode

Dear Patrick,

 

Thank you for your reply, that may help us resolve this in an easy way. The admin must recall the correct password.

How time flies~~~