Operating System - HP-UX
1820137 Members
3244 Online
109619 Solutions
New Discussion юеВ

how to check user creation Date

 
Salm
Frequent Advisor

how to check user creation Date

Hi Every One . I would like to know how would I check particular persons acount date of creation ?? I'm working on HP-UX ver 11.23

I saw him in /etc/passwd fille. but I dont when this user created ???

thanks in Advance

4 REPLIES 4
Ivan Krastev
Honored Contributor

Re: how to check user creation Date

See creation date of user home directory.

regards,
ivan
James R. Ferguson
Acclaimed Contributor

Re: how to check user creation Date

Hi Salm:

There is *NO* creation timestamp in Unix. The closest you can come is the 'mtime' which just so happens to equate to a creation timestamp UNTIL the associated entity is *modified*.

In the case of a directory, additions or deletions of files therein will change the 'mtime' of the directory.

See the manpages for 'stat(2)'.

Regards!

...JRF...
Patrick Wallek
Honored Contributor

Re: how to check user creation Date

The home directory date is fine -- until the home directory gets modified.

There is no way to tell exactly when the user was created. There are ways to guess ; like the home directory date or .profile date, but if those change then you are out of luck.
Salm
Frequent Advisor

Re: how to check user creation Date

Thanks every one . I already tried those posssible tricks but there is lots of things changed. this user several time avtiavte and de activate also there is lots of servers whrere he log in as.


Any way I realy appreciate for you r help . I will try those tricks again and let you know guys if success .