1832480 Members
2789 Online
110043 Solutions
New Discussion

User Disabled Date

 
SOLVED
Go to solution
Nellian Solaiappan
Frequent Advisor

User Disabled Date

Hi
Can anyone tell me how to find out the date on which an user account was disabled? I need to come up with a script to delete users automatically after 90 days from Disabling the user. I'm on HP-UX 11.0

Thanks in advance for your help.
Nell
2 REPLIES 2
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: User Disabled Date

Generally, this timestamp is not kept in the tcb database but it may depend upon how you are disabling accounts. I assume that this is a Trusted system otherwise this is impossible. The way this is typically done is to look at the last login timestamp.

In your case, part of your account disabling (if you are simply doing a passwd -l user) procedure will have to be to write the login, UID, and timestamp to a file and use it because this timestamp is not a stored field. Keeping a parallel file will also work in non-Trusted systems.
If it ain't broke, I can fix that.
Nellian Solaiappan
Frequent Advisor

Re: User Disabled Date

Thanks Clay for your suggestion. It works fine for me.