Re: determine when user account created?

From: Tony Walton (tony.walton_at_s_u_n.com)
Date: 10/27/04


Date: Wed, 27 Oct 2004 16:57:52 +0100

Thomas Maier-Komor wrote:
> Tony Walton wrote:
>
>> Thomas Maier-Komor wrote:
>> > sinister wrote:
>> >
>> >> Is there any way to determine when a user account was first
>> >> created?
>> >>
>> >
>> > a good guess might be the creation time of the home directory
>>
>> How would you propose to find the creation time of the home directory
>> (or indeed of any file on a UFS filesystm)?
>>
>
> well, I guess you are right that the creation time is not available,
> but on the other hand i am not aware that the modification time
> is updated for directories after their creation? Am I wrong?

$ mkdir dir
$ cd dir
$ ls
$ ls -ld
drwxr-xr-x 2 tw25440 techies 512 Oct 27 16:52 .
$ touch foo
$ ls -ld
drwxr-xr-x 2 tw25440 techies 512 Oct 27 16:53 .
$ sleep 60; rm foo
$ ls -ld
drwxr-xr-x 2 tw25440 techies 512 Oct 27 16:54 .
$ sleep 60; touch .
$ ls -ld
drwxr-xr-x 2 tw25440 techies 512 Oct 27 16:55 .
$ touch 12251234 .
$ ls -ld .
drwxr-xr-x 2 tw25440 techies 512 Dec 25 2004 .

And so on.

-- 
Tony


Relevant Pages

  • Re: determine when user account created?
    ... > I agree that UFS does not easily provide creation time, ... > do know that the symlink in the user's home directory was created within a ... Why do you expect a symlink from ... purposes -- .bash_profile is only for the login shell, ...
    (comp.unix.solaris)
  • Re: determine when user account created?
    ... > I agree that UFS does not easily provide creation time, ... > do know that the symlink in the user's home directory was created within a ... Why do you expect a symlink from ... purposes -- .bash_profile is only for the login shell, ...
    (comp.sys.sun.admin)
  • Re: determine when user account created?
    ... > sinister wrote: ... >> Is there any way to determine when a user account was first ... How would you propose to find the creation time of the home directory ...
    (comp.unix.solaris)
  • Re: determine when user account created?
    ... > sinister wrote: ... >> Is there any way to determine when a user account was first ... How would you propose to find the creation time of the home directory ...
    (comp.sys.sun.admin)
  • Re: determine when user account created?
    ... >> How would you propose to find the creation time of the home directory ... $ sleep 60; touch. ...
    (comp.unix.solaris)