1834903 Members
2462 Online
110071 Solutions
New Discussion

User creation date.

 
Julian ITSec
Occasional Contributor

User creation date.

Hi All,

Does HP-UX keep records of when a users were created? If so what command will get me this information?

Thanks in Advance.
3 REPLIES 3
A. Clay Stephenson
Acclaimed Contributor

Re: User creation date.

No. Unless you script this yourself then there is no entry in the TCB database for this data --- oh, and don't listen to any suggestions about timestamps on files because UNIX does not have a file creation timestamp either.

The way to do this is to create a user creation script and it logs this data.

You can see what data a trusted system keeps by doing a 'man prpwd'.
If it ain't broke, I can fix that.
Jeff_Traigle
Honored Contributor

Re: User creation date.

Maybe if auditing is turned on in a trusted system. Haven't used auditing so not sure about how you would track it down if that's even a possibility. Otherwise, no easy, reliable way in the system itself to find out.
--
Jeff Traigle
Ivan Ferreira
Honored Contributor

Re: User creation date.

Under normal circunstances, the oldest file on the home directory for the user, is a good candidate to be the creation date of the user.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?