Operating System - HP-UX
1752277 Members
4459 Online
108786 Solutions
New Discussion юеВ

Re: 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 11
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.