cancel
Showing results for 
Search instead for 
Did you mean: 

restart root password

SOLVED
Go to solution
rajesh73_1
Frequent Advisor

restart root password

Hi

I forget the root password, how to reset the root passowrd in hp-ux

I pls any one help me very urgent
12 REPLIES
Aneesh Mohan
Honored Contributor
Solution

Re: restart root password

the command is
#passwd root

but you doing this you need to have root privilege.

a)do you have any current active root session open ?

b)do you have any remote login configured ?

If there is no other choice ,the way is to reboot the server in single user mode and change the root password using #passwd command.


Aneesh
DeafFrog
Valued Contributor

Re: restart root password

heelo Raj ,

you have to edit tcb/files/auth/r
vi root
:u_pwd=:\ ## make this line lke this.

If you are not logged in as root from anywhere , then you have to boot to single user mode , mount usr , var , tmp and edit the tcb/files/auth/r file in single user mode.

Regards ,
FrogIsDeaf
FrogIsDeaf
Dinesh Kumar B
Occasional Visitor

Re: restart root password

try to rlogin from other servers.
If any one have sudo or sroot access to root,that will also help you to reset the root password.

If everything fails you need to bring the server to single user mode to reset root password.
DeafFrog
Valued Contributor

Re: restart root password

Raj ,

I have assumed that you are running Integrity
and server is trusted.
Regards ,
FrogIsDeaf
rajesh73_1
Frequent Advisor

Re: restart root password

Hi ALL

sorry for the delay reply

my server is trusted only, I am trying to mount /usr in singal mode it saying

vxfs mount: /dev/vg00/lvol7 is corrupted. needs checking

rajesh
Aneesh Mohan
Honored Contributor

Re: restart root password

do fsck
#fsck -F vxfs /dev/vg00/rlvol7

and change the password as mentioned above by Dearfrog .


Aneesh
piyush mathiya
Trusted Contributor

Re: restart root password

If you have booted the system in single user mode, simply you can reset the password with passwd command...

It will not ask your old password while reseting... :)

Hope it will solve your problem...

Regards,
Piyush Mathiya
rajesh73_1
Frequent Advisor

Re: restart root password

Hi

I cannot change passwd in singal mode. as per Mr.FrogIsDeaf instruction i remove the /tcb/files/auth/r/root removed the lines after that i changed the passwd

but my system is trusted mode so when i login try to root it saying account is disbled. i dont have a super user anything in the server only one account is normal account how can i enable to root account

regda
rajesh
Aneesh Mohan
Honored Contributor

Re: restart root password


Hi,

To unlock or enable a user account in TS system

to unlock root account
#/usr/lbin/modprpw -k root

Aneesh

rajesh73_1
Frequent Advisor

Re: restart root password

Hi All

thank you finally i changed the root passwd
Ishwar_1
Frequent Advisor

Re: restart root password

Hi,

I hope that you have brought your system in Single user mode. IF not get the system in the single user mode below i have getting u the few details to get the system in the single user mode.

1. reboot
2. Intercept AUTOBOOT by pressing space bar;
3. bo pri isl ; I assume you are booting primary boot path
4. hpux -is ; simple user mode
5. mount -all ; mount all the filesystem once you have mounted the filesystem
6. tsconvert -r ; this removes from the trusted system
7. passwd ; Reset the new password
OR
8. edit cd /tcb/auth/r/ and edit the root file and leave the passwd entry blank

Try to login with the new passwd.
Hope this solution will help you


tsconvert -b
rajesh73_1
Frequent Advisor

Re: restart root password

Thank you for all to solvemy problem