Operating System - HP-UX
1748266 Members
3432 Online
108760 Solutions
New Discussion

How to change root passwd without original passwd

 
SOLVED
Go to solution
Carme Torca
Super Advisor

How to change root passwd without original passwd

Hi,

 

I need to change root passwd, but it ask me for Old passwd, and we don't have it.

 

#passwd  root
Old password:

 

How can I change this passwd if I don't know Old root passwd?

 

Thanks a lot of,

Carmen.

Users are not too bad ;-)
5 REPLIES 5
Torsten.
Acclaimed Contributor

Re: How to change root passwd without original passwd

Did you try

 

/sbin/passwd


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!   
Carme Torca
Super Advisor

Re: How to change root passwd without original passwd

Yes, I tried

 

# /sbin/passwd  root
Old password:

 

Users are not too bad ;-)
Torsten.
Acclaimed Contributor

Re: How to change root passwd without original passwd

Are you root currently?

How about just

/sbin/passwd

(without root at the end)

Note:

Superusers are not prompted for old passwords, unless
they are attempting to change a superuser's password in a trusted
system.


Is it trusted?

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!   
Carme Torca
Super Advisor

Re: How to change root passwd without original passwd

Yes, the systems is in trusted mode.

 

When I put /sbin/passwd it ask me for the passwd name

 

# /sbin/passwd
Usage: passwd name

 

Users are not too bad ;-)
Carme Torca
Super Advisor
Solution

Re: How to change root passwd without original passwd

I have the solution!!!

 

# cd /tcb/files/auth/r/

and then delete the actual encrypted password from the root file.

 

Thaks everyone.

Users are not too bad ;-)