Operating System - HP-UX
1834370 Members
1937 Online
110066 Solutions
New Discussion

Changing root password to previous one in trusted system

 
Ganesan R
Honored Contributor

Changing root password to previous one in trusted system


Hi,

We have a HP-UX system running with 11.11. Due to some reason we want to reset the password to the previous one. Since it is trusted system not allow us to use the previous one. It is keeping the last few passwords history and it is a feature of trusted system.

Is there any way we can disable this feature and change the password to previous one?

Thanks in advance...
Best wishes,

Ganesh.
7 REPLIES 7
Jeeshan
Honored Contributor

Re: Changing root password to previous one in trusted system

You can revoke the system trusted mode. and change the password.
a warrior never quits
Roberto Arias
Valued Contributor

Re: Changing root password to previous one in trusted system

HI Ganesan:


you can remove the history of password. This files are in path /tcb/files/auth/system/p_hist, I think. remove the files and then change de password of root:

1º) >
2º) passwd -df root
3º) passwd root and put the new passwords

Ihope help you
The man is your friend
Ganesan R
Honored Contributor

Re: Changing root password to previous one in trusted system

Hi Ahsan,

We don't want revert back the system to normal mode.

Hi Roberto,

Under /tcb/files/auth/system/pwhist there are many password history files ending with some numbers. Not sure which one hold the root password history.

And also we do not want to clear other user password histories...

Best wishes,

Ganesh.
Ganesan R
Honored Contributor

Re: Changing root password to previous one in trusted system

Hi All,

Does anyone have some idea on this ???

Thanks in advance.
Best wishes,

Ganesh.
Roberto Arias
Valued Contributor

Re: Changing root password to previous one in trusted system

OK, in my case I empty all files of password's history.

You can configure root account without security policy by SAM and then change the password. try it

hth
The man is your friend
Tim Nelson
Honored Contributor

Re: Changing root password to previous one in trusted system

how about changing the default history setting.

/etc/default/security. change history depth to 0 or 1, change it twice and you are back in business.

Kenneth Platz
Esteemed Contributor

Re: Changing root password to previous one in trusted system

Change the password twice (or 3 times). Pick some bogus password (like Abcd1234) and then immediately change it again. Root can get around most of the password change rules except the password history depth.
I think, therefore I am... I think!