1832765 Members
3309 Online
110045 Solutions
New Discussion

last password change

 
SOLVED
Go to solution
Mois
New Member

last password change

Hi,

can anyone tell me how to convert the value of u_succhg on a tcb system?
3 REPLIES 3
Alex Glennie
Honored Contributor
Solution

Re: last password change

adb(1) will decode this value for you. You can
also use some routines listed in ctime(3c) to programmatically
decode it.

You should be able to use the following example:

u_succhg=0D881797876
echo 0d881797876=Y | adb

returns

1997 Dec 10 18:51:16

For more information see the following man pages:

- prpwd(4)
- adb(1)
- ctime(3C)

Mois
New Member

Re: last password change

Thank you very much for such a fast response, I've tryed the the trick with the adb cmd, like this:

echo 978614262=Y | adb
it gave me:

2033 Dec 31 11:05:06

Is this the time when the system will ask me for a new password?
Wai Kiong Choy
Advisor

Re: last password change

You did not mention which hpux version you are using but on my hpux 10.20 trusted system, 'adb' will not work properly. For example, I have a password which was changed on 27 Mar 2001, and when I used the 'adb' command to show the last password change date, the return string is '1904 Oct 15 16:52:02'. My system is Y2K compliant.

Anyway, the way I have been using to check the last password change date is

/usr/lbin/getprpw -m spwchg