Re: root password locked (169 Views)
Reply
Regular Advisor
Deeos
Posts: 133
Registered: ‎10-15-2009
Message 1 of 9 (169 Views)

root password locked

hi,

can any one tell me how could i comes such problem where my root password has locked. how can i log in again and resolve the issue!
Deepak
Regular Advisor
mogiro
Posts: 102
Registered: ‎07-26-2007
Message 2 of 9 (169 Views)

Re: root password locked

Bad problem...
You should restart the machine on single user mode, and then copy/paste the root on the /etc/passwd line from another machine where you know its root password. Reboot normally and you should be able to log into as root using the password of the machine you copied the line...
Honored Contributor
Robert-Jan Goossens
Posts: 7,384
Registered: ‎04-04-2000
Message 3 of 9 (169 Views)

Re: root password locked

Hi,

You can use the console to login on the system, then use "modprpw -k root" to unlock the root account.

Regards,
Robert-Jan
Regular Advisor
Deeos
Posts: 133
Registered: ‎10-15-2009
Message 4 of 9 (169 Views)

Re: root password locked

Hi,

is there any MP console methods to recover the password?
Deepak
Regular Advisor
Deeos
Posts: 133
Registered: ‎10-15-2009
Message 5 of 9 (169 Views)

Re: root password locked

Robert-Jan,


do you have screen shot of such incident so that it will more clarify!
Deepak
Honored Contributor
Kapil Jha
Posts: 1,478
Registered: ‎01-23-2006
Message 6 of 9 (169 Views)

Re: root password locked

screen shot??

you should allow root to login any number of time on console.

so you can login from root and the unlock the passwd with command

#/usr/lbin/modprpw -k root

BR,
Kapil+
I am in this small bowl, I wane see the real world......
Esteemed Contributor
Anshumali
Posts: 548
Registered: ‎01-20-2007
Message 7 of 9 (169 Views)

Re: root password locked

No screenshot as its quite simple...

SSH to MP
Type Co for Console
Select your partition
you will be presented with your console login prompt.
Enter the username/pasword and you should be in *If you password is correct*
most importantly, find out why it got locked at first place using getprw root and last/lasb combos, auditing
run modprpw -k root to enable it.
Dreams are not which you see while sleeping, Dreams are which doesnt allow you to sleep while you are chasing for them!!
Advisor
Schneider H.-P.
Posts: 26
Registered: ‎10-29-1996
Message 8 of 9 (169 Views)

Re: root password locked

Hi,

boot in single-user mode. At this time no password is required and you have access only to limited resources among which the possibility to change the root password with the command:
passwd root
at this point you can enter the new password;

greetings
H.-P.
Trusted Contributor
madhuchakkaravarthy
Posts: 249
Registered: ‎01-25-2010
Message 9 of 9 (169 Views)

Re: root password locked

hi

boot in to single user mode

if its non trusted sys

1. passwd root
2.Boot the system in to multi user mode.

if its trusted sys
run fsck before mounting
1. mount /usr
2. /usr/lbin/modprpw -k root
3. /usr/sam/lbin/usermod.sam -F -p "" root
4.passwd root
5.Boot the system in to multi user mode



#/usr/lbin/tsconvert -r
#/sbin/passwd root

but make a note

This will expire all other accounts password and /usr/lbin/tsconvert needs to be run again.

regards

MC
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.