How to change root passwd without original passwd (255 Views)
Reply
Super Advisor
Carme Torca
Posts: 582
Registered: ‎09-20-1998
Message 1 of 6 (255 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 ;-)
Please use plain text.
Acclaimed Contributor
Torsten.
Posts: 23,097
Registered: ‎10-02-2001
Message 2 of 6 (252 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! star in the left column!   
Please use plain text.
Super Advisor
Carme Torca
Posts: 582
Registered: ‎09-20-1998
Message 3 of 6 (250 Views)

Re: How to change root passwd without original passwd

Yes, I tried

 

# /sbin/passwd  root
Old password:

 

Users are not too bad ;-)
Please use plain text.
Acclaimed Contributor
Torsten.
Posts: 23,097
Registered: ‎10-02-2001
Message 4 of 6 (247 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! star in the left column!   
Please use plain text.
Super Advisor
Carme Torca
Posts: 582
Registered: ‎09-20-1998
Message 5 of 6 (245 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 ;-)
Please use plain text.
Super Advisor
Carme Torca
Posts: 582
Registered: ‎09-20-1998
Message 6 of 6 (232 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 ;-)
Please use plain text.
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