Operating System - HP-UX
1819791 Members
3166 Online
109607 Solutions
New Discussion юеВ

how to bypass "Old password" prompt for root

 
SOLVED
Go to solution
Tony Leahy
Occasional Advisor

how to bypass "Old password" prompt for root

Hi,
ok did something really stupid for a Tuesday morning .. reset the root password but it is not the password I thought I had

I have a few telnet sessions to the server but the problem is it asks for the old password when I try to change it

is there any way out of this without having go to single-user mode ?
2 REPLIES 2
Sridhar Bhaskarla
Honored Contributor
Solution

Re: how to bypass "Old password" prompt for root

Tony,

If you have a root session open, you can almost do anything.

For non-trusted system: Edit /etc/passwd file and remove the 'encrypted' password string (second field).

For trusted system: The encrypted string will be * in /etc/passwd file. Edit /tcb/files/auth/r/root file and take out the encrypted string.

Run 'passwd' and it shouldn't prompt you for the old password now.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Tony Leahy
Occasional Advisor

Re: how to bypass "Old password" prompt for root

Hi,
thanks Sri - perfect answer

It is a trusted system and now it has a correct
password :)

Tony.