Unix Technical Forum

determine when user account created?

This is a discussion on determine when user account created? within the Sun Solaris Administration forums, part of the Solaris Operating System category; --> Is there any way to determine when a user account was first created?...


Go Back   Unix Technical Forum > Unix Operating Systems > Solaris Operating System > Sun Solaris Administration

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-16-2008, 07:59 AM
sinister
 
Posts: n/a
Default determine when user account created?

Is there any way to determine when a user account was first created?


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-16-2008, 07:59 AM
Thomas Maier-Komor
 
Posts: n/a
Default Re: determine when user account created?

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 - although
this might be wrong if the directory was recreated during a restore from
a backup...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-16-2008, 07:59 AM
sinister
 
Posts: n/a
Default Re: determine when user account created?


"Thomas Maier-Komor" <maierkom@lpr.e-technik.no-spam.tu-muenchen.de> wrote
in message news:cloa6i$j7h$1@wsc10.lrz-muenchen.de...
> 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 - although
> this might be wrong if the directory was recreated during a restore from
> a backup...


Right, I thought of that. Also, some of the users on my system have home
dirs that don't actually exist anymore. A sure sign they either never used
the account (and that the previous admin didn't create them properly), or
that the account is so old the directory structure changed a lot in the
meantime. But I was wondering if I could somehow get a precise date...

Thanks,

S


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-16-2008, 07:59 AM
Tony Walton
 
Posts: n/a
Default Re: determine when user account created?

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)?

--
Tony

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-16-2008, 07:59 AM
Dave Uhring
 
Posts: n/a
Default Re: determine when user account created?

On Wed, 27 Oct 2004 15:40:59 +0100, Tony Walton wrote:

> How would you propose to find the creation time of the home directory
> (or indeed of any file on a UFS filesystm)?


[duhring]$ ls -l .bash_profile
lrwxrwxrwx 1 root other 7 Aug 23 21:17 .bash_profile -> .bashrc
[duhring]$ ls -l /etc/chroot
lrwxrwxrwx 1 root root 18 Aug 23 19:42 /etc/chroot -> ../usr/sbin/chroot

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-16-2008, 07:59 AM
Thomas Maier-Komor
 
Posts: n/a
Default Re: determine when user account created?

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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-16-2008, 07:59 AM
Tony Walton
 
Posts: n/a
Default Re: determine when user account created?

Dave Uhring wrote:
> On Wed, 27 Oct 2004 15:40:59 +0100, Tony Walton wrote:
>
>
>>How would you propose to find the creation time of the home directory
>>(or indeed of any file on a UFS filesystm)?

>
>
> [duhring]$ ls -l .bash_profile
> lrwxrwxrwx 1 root other 7 Aug 23 21:17 .bash_profile -> .bashrc
> [duhring]$ ls -l /etc/chroot
> lrwxrwxrwx 1 root root 18 Aug 23 19:42 /etc/chroot -> ../usr/sbin/chroot
>


Sorry Dave, I'm not with you there at all.

--
Tony

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 01-16-2008, 07:59 AM
Stephane CHAZELAS
 
Posts: n/a
Default Re: determine when user account created?

2004-10-27, 17:30(+02), Thomas Maier-Komor:
[...]
> 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?


The modification time is updated each time you modify the
directory (for instance when you link or unlink a file to it).

--
Stephane
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 01-16-2008, 07:59 AM
Dave Uhring
 
Posts: n/a
Default Re: determine when user account created?

On Wed, 27 Oct 2004 16:24:51 +0100, Tony Walton wrote:

> Dave Uhring wrote:
>> On Wed, 27 Oct 2004 15:40:59 +0100, Tony Walton wrote:
>>
>>
>>>How would you propose to find the creation time of the home directory
>>>(or indeed of any file on a UFS filesystm)?

>>
>>
>> [duhring]$ ls -l .bash_profile
>> lrwxrwxrwx 1 root other 7 Aug 23 21:17 .bash_profile -> .bashrc
>> [duhring]$ ls -l /etc/chroot
>> lrwxrwxrwx 1 root root 18 Aug 23 19:42 /etc/chroot -> ../usr/sbin/chroot
>>

>
> Sorry Dave, I'm not with you there at all.


The OS was installed at about 19:42 on 23 August - from the symlink for
/etc/chroot.

The user account was created at about 21:17 on the same day - from the
symlink in my user's home directory.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 01-16-2008, 07:59 AM
Ian Gregory
 
Posts: n/a
Default Re: determine when user account created?

In article <cloev3$lfm$1@wsc10.lrz-muenchen.de>, 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?


Yes:-)

ihg0(535)$ uname -a
SunOS xxxx 5.10 s10_58 sun4u sparc SUNW,Ultra-5_10
ihg0(536)$ mkdir test;cd test;sleep 60
ihg0(537)$ ls -ld .;ls -ldc .
drwxr-xr-x 2 ccsqihg staff 512 Oct 27 16:53 .
drwxr-xr-x 2 ccsqihg staff 512 Oct 27 16:53 .
ihg0(538)$ touch zzz
ihg0(539)$ ls -ld .;ls -ldc .
drwxr-xr-x 2 ccsqihg staff 512 Oct 27 16:54 .
drwxr-xr-x 2 ccsqihg staff 512 Oct 27 16:54 .

--
Ian Gregory
http://www.zenatode.org.uk/ian/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:12 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com