The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Help Required: Command to find IP address and command executed of a user loggedout Security 2 08-06-2008 05:12 PM
Use date command to find last month Cbish68 Shell Programming and Scripting 5 08-10-2007 07:32 AM
Find user password expiry date oztoma UNIX for Dummies Questions & Answers 2 04-02-2007 05:43 AM
Changing Creation Date to a Prespecified Date of a File In Unix monkfan UNIX for Dummies Questions & Answers 4 11-28-2006 03:15 AM
user account creation date lilweezy UNIX for Dummies Questions & Answers 2 05-24-2006 01:12 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-05-2007
Registered User
 

Join Date: Jun 2006
Posts: 24
Stumble this Post!
Command to find out user creation date

Is there a Command to find out user creation date ?

or any other possible ways to find the same.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 01-05-2007
Registered User
 

Join Date: Jul 2005
Location: Amsterdam
Posts: 97
Stumble this Post!
Quote:
Originally Posted by Crazy_murli
Is there a Command to find out user creation date ?

or any other possible ways to find the same.
By default this is not enabled. You might want to check the audit daemon, the audit daemon
Can track those kinds of things.

If your company is SOX compliant it can very well be that you need this to be in place to be SOX compliant. You can check out the following links:


http://www.terminalcult.org/manpages...&Search=Search
http://www.terminalcult.org/manpages...&Search=Search
http://www.terminalcult.org/manpages...&Search=Search


Regards, Johan Louwers.

***Moderators note: Signature removed from post -- reborg.

Last edited by reborg; 01-05-2007 at 11:20 AM.
Reply With Quote
  #3 (permalink)  
Old 01-07-2007
Registered User
 

Join Date: Jun 2006
Posts: 24
Stumble this Post!
Very true. But we dont this in place on the server now.

And we are trying to find this out for an existing user.
We tried checking the user home directory for the timestamps of .bash_profile etc. Not sure, if this is the only way available. Just trying to find out easy ways for doing the same.

Cheers, Murli.
Reply With Quote
  #4 (permalink)  
Old 01-08-2007
Registered User
 

Join Date: Dec 2006
Posts: 18
Stumble this Post!
Quote:
Originally Posted by Crazy_murli
Very true. But we dont this in place on the server now.

And we are trying to find this out for an existing user.
We tried checking the user home directory for the timestamps of .bash_profile etc. Not sure, if this is the only way available. Just trying to find out easy ways for doing the same.

Cheers, Murli.

just a thought. but i'm almost certain if you do a ls -ld on the home directory of the user that should bring you closer to the exact date it was created.

ls -ld /home/user'shomedirectory (check the 6th and 7th columns)
Reply With Quote
  #5 (permalink)  
Old 01-08-2007
Registered User
 

Join Date: Dec 2006
Posts: 18
Stumble this Post!
Quote:
Originally Posted by SkySmart
just a thought. but i'm almost certain if you do a ls -ld on the home directory of the user that should bring you closer to the exact date it was created.

ls -ld /home/user'shomedirectory (check the 6th and 7th columns)

actually, this can be wrong since the 6th and 7th columns date gets updated each time the contents of the directory changes.

however, depending on the frequency of the user's usages you can do a ls -ltcr in the user's home directory and look at the date of oldest file in there.
Reply With Quote
  #6 (permalink)  
Old 01-08-2007
_Spare_Ribs_'s Avatar
Registered User
 

Join Date: Dec 2006
Location: /dev/null
Posts: 72
Stumble this Post!
Hi all,

Just a quick note. Remember it's possible to create a user account without a home directory so checking modification times of home directories wont always work.
Reply With Quote
  #7 (permalink)  
Old 01-08-2007
Registered User
 

Join Date: Dec 2006
Posts: 18
Stumble this Post!
Quote:
Originally Posted by _Spare_Ribs_
Hi all,

Just a quick note. Remember it's possible to create a user account without a home directory so checking modification times of home directories wont always work.

true. which is why i replied back saying it can be wrong. however, it can be useful if the other options available seems a bit too complicated to learn
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 07:46 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0