Operating System - HP-UX
1843402 Members
4069 Online
110215 Solutions
New Discussion

how to change the root password from single user mode.

 
khilari
Regular Advisor

how to change the root password from single user mode.

i want to change the password of the server its an E35. I forgot the password so i went into the single user mode and typed
#passwd hp
that doesnt work, so what else should i use to change it.

Thanks
4 REPLIES 4
Torsten.
Acclaimed Contributor

Re: how to change the root password from single user mode.

Your command means, change the password for user "hp".

Issue only:

passwd

the command will ask you for the new password for user root.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Mridul Shrivastava
Honored Contributor

Re: how to change the root password from single user mode.

you can use passwd root

this will change the password for root the above command will change the password for hp...
Time has a wonderful way of weeding out the trivial
FLQ
Valued Contributor

Re: how to change the root password from single user mode.

Hi khilari,

what you did was trying to change "hp"'s password not root's

type "passwd" and enter the new password.

This will change the root password.

If that fails, edit "/etc/passwd" and remove the password string that is there. If your machine is in trusted mode, edit the file "/tcb/files/auth/r/root" and remove the string after the "u_pwd=" up to the ":".

Log back in and then set a new password.

HTH

Francis
Jaime Bolanos Rojas.
Honored Contributor

Re: how to change the root password from single user mode.

Khilari,

This thread have the solution to you problem if you forgot your password,

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1037700

Regards,

Jaime.
Work hard when the need comes out.