Operating System - HP-UX
1837231 Members
2103 Online
110115 Solutions
New Discussion

root account locked even on console

 
Thomas Prause
Occasional Advisor

root account locked even on console

Hi all,

the password for my root has expired. Usually this can be fixed by logging in at the console. But this time I can not log in. If I enter a empty password the system says something like "Account locked, but console login still allowed". If I enter the right password for root I get the standard error message for wrong user and/or password. Are there any other ways to get root reactivated?

BTW this all is on 11i with Support Plus Bundle from December 2004.

Thanks for any pointer.
Thomas Prause
10 REPLIES 10
Florian Heigl (new acc)
Honored Contributor

Re: root account locked even on console

I am afraid You have to do the journey to single user mode if there is no active root session left.

on reboot, You'll have to answer 'y' on the 'interact with isl' message and at the next prompt issue 'hpux -is', which will take You to single user mode. a simple passwd root should fix it, I think there also is a command to un-expire the account only, but I unfortunately don't know it.
yesterday I stood at the edge. Today I'm one step ahead.
Jeff Schussele
Honored Contributor

Re: root account locked even on console

Hi Thomas,

Double check that root PW - specifically make sure capslock is OFF. It's been my experience that when it states that, you can still get in on the console.
The other thing that might be in play is if you're using either "#" or "@" in that PW - then the system is interpreting them as tty control chars. They should never be used in a PW & you may have gotten away with it on all other term types but you can't on the console. If this is the case then you'll have no choice but to go single user to change it.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
James George_1
Trusted Contributor

Re: root account locked even on console

As florian has explained, you will have to boot to single user mode to get it re acitivated.

You can chooe " NOT TO EXPIRE THE root a/c" through SAM..

SAM >> Accounts for Users and Groups > users >> select root > Action > Modify Security policies > Passwd Aging Policies > Disable Passwd Aging. So, your root passswd will not expire.

Good Luck
James
forum is for techies .....heaven is for those who are born again !!
Robert Salter
Respected Contributor

Re: root account locked even on console

If there are a "#" or "@" in the password as Jeff suggested you might try using "\"in front of them whentyping in the password. i.e.
password is #sand
type \#sand

As as the other folks said, if this isn't the case it's off to single-user land.
Time to smoke and joke
Manuel Contreras
Regular Advisor

Re: root account locked even on console

If you can NOT bounce box and have OMNIback/Dataprotector in your env. you could try the following:

copy the existing /etc/passwd and modify root's encrypted password value to match yours or remove the values that refer to expiration. this modified file would be backed-up and restored on top of the systems /etc/passwd file.

(I do not have a trusted env, but I would imagine you trusted guys may know which files to tweak).

Hope this helps,
manuel
Mic V.
Esteemed Contributor

Re: root account locked even on console

And of course, if you have a user with appropriate SAM privs, you can fix it. Same for sudo.

Mic
What kind of a name is 'Wolverine'?
Thomas Prause
Occasional Advisor

Re: root account locked even on console

Thanks for all your help. Finally I had to reboot :-(

Some more details about this strange thing:
Entering the right password at the CDE login told me "Account locked in the security database", while a wrong password gave "Logon failed". So I can be quite shure to have the right pwd and I've tried several times. Password contains only upper and lower case letters and numbers. Nothing fancy.
In the Single User mode I could simple do 'passwd root', provide the old pwd and set a new one, so the console seems not to "translate" some characters incorrectly.
Local security rules do not allow non expiring passwords even for root.

Thank you.
Thomas Prause
Manuel Contreras
Regular Advisor

Re: root account locked even on console

In todays env. where you have an infrastructure of systems/applications that are almost seamless, passwds that do not expire are welcomed.

I would hope you might be able to implement a schedule where passwds are changed, rather then having the system expire them...especially root.
my .02,
manuel
Marvin Strong
Honored Contributor

Re: root account locked even on console

If you must expire root, setup sudo for the admins so you have a way to become root, when the account expires. So you can reset it without needing to reboot.

Personally I think its very easy to justify a non-expiring root passwd. But thats a battle you have to choose for yourself or not.
baiju_3
Esteemed Contributor

Re: root account locked even on console

Hi

By eny chance do you have a remsh access to this server ?

in that case run remsh server -n " /usr/lbin/modprpw -k root"

or overwrite the tcb file by rcp .

Nothing works ,
then reboot in single user mode .

BL.
Good things Just Got better (Plz,not stolen from advertisement -:) )