cancel
Showing results for 
Search instead for 
Did you mean: 

Unlock root account hp ux

SOLVED
Go to solution
jeg_1
Occasional Contributor

Unlock root account hp ux

hi all,
this morning i execute passwd -l command and lost my root session..
and now i can`t login to root account..
can some one help me to unlock that account??

best regard.
11 REPLIES
Prashanth Waugh
Esteemed Contributor
Solution

Re: Unlock root account hp ux

Hi,

if ur system in trusted mode then use
#modprpw -k root

-k To unlock/enable a user's account that has become disabled,
except when the lock is due to a missing password or * password.

Regards
Prashnat

For success, attitude is equally as important as ability
Prashanth Waugh
Esteemed Contributor

Re: Unlock root account hp ux

Hi

You can check ur system is in trusted mode or not by using
#cat /etc/passwd | awk -F: '{print $2}'

the output of the above command will be * only.


Regards
Prashant
For success, attitude is equally as important as ability
jeg_1
Occasional Contributor

Re: Unlock root account hp ux

thank's for your reply prashant
but i have lost my root session and can`t get login in to that account..
any idea?
Prashanth Waugh
Esteemed Contributor

Re: Unlock root account hp ux

Hi,

FOR PA Servers.

1--> reboot
2--> stop the boot sequence and go to the isl prompt.
3--> run hpux -is
4--> reset the password
=========================================

Boot the system in single user mode. you will get the BCH prompt
> boot pri

You will get ISL prompt
interact with ISL (Y/N): Y (type y)
ISL>
Type hpux -is
This will land you to # this prompt

then mount the /usr,/var,/temp

after mounting it use the
#modprpw -k root

But if its a production system then there will be a problem for down time.

Regards
Prashant
For success, attitude is equally as important as ability
Analyst
Trusted Contributor

Re: Unlock root account hp ux

Hi jeg,

In Trusted Machine,Since you have activated your root account using modprpw , normally it should able to login.

Try logging from the console/MP.

use getprpw -l
to list the password database.

Thanks,
Analyst.
jeg_1
Occasional Contributor

Re: Unlock root account hp ux

so when we log in to single user mode, we will have a root privilege, don`t it?
can you give me step by step to log into single user mode..

really great appreciate for all of your answer..
thank's
Suraj K Sankari
Honored Contributor

Re: Unlock root account hp ux

Hi,

1.Did you tried with console if not then try from console.
2.Do you have any root equvalent user then try to login with that user and change/reset the passwd.
3.If your system is having cluster then might be you can login from other node via remsh without passwd try this also.

or

Else you have to take your system into single user and select recovery system

From there you can reset your root passwd.

Suraj
Analyst
Trusted Contributor

Re: Unlock root account hp ux

Jeg,

Reboot the machine

Interrupt the boot sequence

>bo Pri

>Interact with IPL : Y

>HPUX -is (at boot prompt)

gets logged in , try change the passwd.

reboot again or, go to multiuser mode and continue the work.

Thanks,
Analyst.
Analyst
Trusted Contributor

Re: Unlock root account hp ux

Jeg ,

If you feel diffcult , please go thru the document.

http://docs.hp.com/en/B2355-90950/ch05s01.html#aes-npar-329b.

Ganesan R
Honored Contributor

Re: Unlock root account hp ux

Hi Jeg,

Since you cannot login, only way is reset the password in single user mode. Normally it will not ask the root password when you boot into single user mode unless or until you have configured to ask the password in trusted mode configurations. Normally people won't do that.

Since you cannot login, power recycle the box first. On the console, interrupt the auto boot sequence when it ask you press any key. It will take you to BCH menu.

On BCH menu> bo pri

Interact with IPL? give "Y"

It will take you to ISL prompt. On ISL prompt type the below command.

ISL>hpux -is

Now system will boot into single user mode. You can reset the root password using "passwd" command.

Best wishes,

Ganesh.
jeg_1
Occasional Contributor

Re: Unlock root account hp ux

yes, it done..
restart the server, login into single mode user. than reset password use passwd command.
i can`t use modprpw command.
But change the password will unlock your root account.

thank`s for all replies.
regard.