How to change root passwd without original passwd (346 Views)
Reply
Super Advisor
Carme Torca
Posts: 584
Registered: ‎09-20-1998
Message 1 of 6 (346 Views)
Accepted Solution

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 ;-)
Acclaimed Contributor
Torsten.
Posts: 23,450
Registered: ‎10-02-2001
Message 2 of 6 (343 Views)

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!   
Super Advisor
Carme Torca
Posts: 584
Registered: ‎09-20-1998
Message 3 of 6 (341 Views)

Re: How to change root passwd without original passwd

Yes, I tried

 

# /sbin/passwd  root
Old password:

 

Users are not too bad ;-)
Acclaimed Contributor
Torsten.
Posts: 23,450
Registered: ‎10-02-2001
Message 4 of 6 (338 Views)

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!   
Super Advisor
Carme Torca
Posts: 584
Registered: ‎09-20-1998
Message 5 of 6 (336 Views)

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 ;-)
Super Advisor
Carme Torca
Posts: 584
Registered: ‎09-20-1998
Message 6 of 6 (323 Views)

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 ;-)
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.