1835969 Members
3101 Online
110088 Solutions
New Discussion

User account locked

 
SOLVED
Go to solution
Daniel Fourie
Frequent Advisor

User account locked

I have got a trusted system and someone has locked the root account now I can not get in the system. How will i fix this problem.

Many thanks
Daniel
Knowlage is Power
5 REPLIES 5
Steven Sim Kok Leong
Honored Contributor

Re: User account locked

Hi,

1) Have you tried logging in at the console? Even if the root account is disabled, as long as you login with the correct password at the console (in console mode), you should still be able to login. For CDE login, you need to click on options and select Command Line mode.

2) If you have forgotten your password, then you will need to boot up in single-user mode to reset your root password (ie. hpux -is).

Hope this helps. Regards.

Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
Wodisch
Honored Contributor
Solution

Re: User account locked

Hello Daniel,

if you have another super-user login availabe, you may use the command "/usr/lbin/modprpw" with the option "-k root" or "-x root"; one works for "root" only, the other for all other users (but I do not remember which does what).

HTH,
Wodisch
Eugen Cocalea
Respected Contributor

Re: User account locked

Hi,

This is an excerpt from the man page of 'su':

'Except for user root, users on a trusted system cannot use su to change to an account that has been locked because of expired passwords or other access restrictions'.

Have you tried logging as a simple user then 'su' to root?

E.
To Live Is To Learn
Daniel Fourie
Frequent Advisor

Re: User account locked

I have changed the password but still canot login cause the account has been locked.

Any Ideas
Knowlage is Power
Phil Daws_1
New Member

Re: User account locked

If the account is locked then from the console type /usr/lbin/modprpw -lk root. This is the command that SAM executes.