1833757 Members
2854 Online
110063 Solutions
New Discussion

root password

 
Noel Daniel
Advisor

root password

One of my customers have an issue.

Very carelessly he has lost the root password, & now he needs root access. What is the proecedure to get into the system ? Is there a method through single user mode ?
6 REPLIES 6
DCE
Honored Contributor

Re: root password


You can boot the system into single user mode snd change the root password.

If the password is protected in single user mode then you will have to boot off of the install/recovery CD and recover the root password via the recovery menu

Noel Daniel
Advisor

Re: root password

Yes I am unable to change it through single user mode. I went in to the recovery console & checked. In what step can passwd be changed ?
Yogeeraj_1
Honored Contributor

Re: root password

hi,

without going through the procedures mentioned above, it would be impossible to recover the password... Unless they have created an account with ID same as root!!

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Mridul Shrivastava
Honored Contributor

Re: root password

You need to interuupt the automatic boot process.. then you will be at BCH there you need to type hpux -is

this will boot the system into single user mode there you can change the root password using "passwd root" command and reboot..

This should resolve the issue..
Time has a wonderful way of weeding out the trivial
Noel Daniel
Advisor

Re: root password

1- I know how to enter the single user mode. But what I am saying is that it doesn't allow to change without he old password.

2- About running recovery from the HP-UX installaltion CD: What is the procedure within it to recover/change root password.
Salai Balakrishnan
New Member

Re: root password

You can boot the Server in single user mode by "hpux -is" by terminating the autoboot.

Then edit the /etc/passwd file thru vi editor and remove the entry in the second field between root and user id. i.e. after removing the entry should look like

root::0:....:.....:....

Now there will not be any password and you can press enter if it ask for the passwd.

Boot the Server in normal mode and give the new passwd as u need.