1847791 Members
3354 Online
104021 Solutions
New Discussion

forgot root password

 
jackizm
Occasional Contributor

forgot root password

Hi,

I forgot root password.How to enter system?

Thank you.
11 REPLIES 11
Steven Schweda
Honored Contributor

Re: forgot root password

Boot in single-user mode? Detailed
instructions might be more reliable if anyone
other than you knew something about the
system (OS, hardware, console. ...)
Deepak Kr
Respected Contributor

Re: forgot root password

How are you entering into system through console or remote session using ssh or telnet?

In this case, you take system into single user mode using following steps:

You can login to MP...type cm, select rs--->your partition no and press y
This will restart the partition, now you can stop at BCV by pressing any key, (it asks for that) and type bo pri, (to boot with primary path)
when asked if you want to interact with ISL(Initial System Loader), select Y
You will get ISL prompt
interact with ISL (Y/N): Y (type y)
ISL>
Type hpux -is
This will land you to # prompt
#

Now you can change password here using passwd command.

"There is always some scope for improvement"
Prashanth Waugh
Esteemed Contributor

Re: forgot root password

Hi Jackizam,
Boot the system in single user mode. you will get the below prompt

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

Regards
Prashant
For success, attitude is equally as important as ability
Asif Sharif
Honored Contributor

Re: forgot root password

Hi Jackizam,

FOR PA Servers.

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

FOR IA64 Servers.

1--> Interupt the boot sequence at EFI boot
2--> Choose to boot from Primary boot path
3--> boot vmunix --> interupt.
4--> at the EFI prompt type
EFI> boot vmunix -is

you will get # prompt.

# passwd root
Enter new password:
Confirm:

#init 3 <---- boot into run level 3

OR

# shutdown -r -y 0 <---reboot the machine

Regards,
Asif Sharif
Regards,
Asif Sharif
jackizm
Occasional Contributor

Re: forgot root password

Thanks all.
jackizm
Occasional Contributor

Re: forgot root password

I have found a solution.
Asif Sharif
Honored Contributor

Re: forgot root password

please assign points.

Regards,
Asif Sharif
Regards,
Asif Sharif
Prashanth Waugh
Esteemed Contributor

Re: forgot root password

Hi Jackizam,

Which solution u have found, Pls share ur knowledge.The main objective of forum is to share the knowledge

Regards
Prashant
For success, attitude is equally as important as ability
Prasanth Thomas
Valued Contributor

Re: forgot root password

Hi

FOR PA Servers.

Firt you have to reboot the server through mp console mp---cm---rs--yes
Then then the server will reboot ,

Whenever the server will reach the boot sequence prompt then select the isl prompt (for PA servers), and run the below command.

hpux -is

For IA 64 servers select the EFI shell prompt and run the belo command

boot vmunix -is

you will get # prompt.

# passwd root
Enter new password:
Confirm:

After these activities you have to reboot the server by the below command

# shutdown -r -y 0

Best Regards
Prasanth Thomas
Steven Schweda
Honored Contributor

Re: forgot root password

> Which solution u have found, Pls share ur
> knowledge.

You got a question with almost no useful
information. You expect the person who asked
it to explain the solution in greater detail?
Seems to me unrealistic.
jackizm
Occasional Contributor

Re: forgot root password

Hi,
My solution is:
1--> Interupt the boot sequence at EFI boot
2--> Choose to boot from Primary boot path
3--> boot vmunix --> interupt.
4--> at the HPUX prompt type
HPUX> boot vmunix -is

you will get # prompt.

# passwd root
Enter new password: