1753879 Members
7437 Online
108809 Solutions
New Discussion юеВ

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 12
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
New Member

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