Command to find out user creation date


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Command to find out user creation date
# 1  
Old 01-05-2007
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.
# 2  
Old 01-05-2007
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 03:20 PM..
# 3  
Old 01-07-2007
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. Smilie
# 4  
Old 01-08-2007
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. Smilie

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)
# 5  
Old 01-08-2007
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.
# 6  
Old 01-08-2007
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.
# 7  
Old 01-08-2007
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
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script to copy creation date over top of modified date?

Can someone draw up a script that for every file, folder and subfolder and files that will copy the creation date over top of the modified date?? I know how to touch every file recursively, but no idea how to read a files creation date then use that to touch the modification date of that file,... (3 Replies)
Discussion started by: toysareforboys
3 Replies

2. Shell Programming and Scripting

Find week of the year for given date using date command inside awk

Hi all, Need an urgent help on the below scenario. script: awk -F"," 'BEGIN { #some variable assignment} { #some calculation and put values in array} END { year=#getting it from array and assume this will be 2014 month=#getting it from array and this will be 05 date=#... (7 Replies)
Discussion started by: vijaidhas
7 Replies

3. UNIX for Dummies Questions & Answers

Unable to find files, those can be present anywhere in the directory tree,based on its creation date

Hi I am unable to find files, those are present anywhere in the same directory tree, based on the creation date. I need to find the files with their path, as I need to create them in another location and move them. I need some help with a script that may do the job. Please help (2 Replies)
Discussion started by: sam192837465
2 Replies

4. UNIX for Dummies Questions & Answers

Select all files in a folder based on creation date (ls command)

Hi All, <Re-posting in Correct group> I'm trying to select all the files in a folder that starts with a particular name format and are created in a gven date range using 'ls' command...but i'm not successful.... Example : I'm trying to see all the text files in a folder who names start... (6 Replies)
Discussion started by: Satya C1
6 Replies

5. OS X (Apple)

How to get the file creation date with find command

Is it possible to find all files based on the date of creation? And if so, how? I've been looking at the find command but it seems that only modification times are used as an option. (1 Reply)
Discussion started by: Straitsfan
1 Replies

6. Solaris

Creation Date of Solaris User

Hi, I am using Solaris 10. How could I find when a solaris user was created? thanks and regards (4 Replies)
Discussion started by: fahdmirza
4 Replies

7. Shell Programming and Scripting

how to find creation date of file

Hi, I just need to know way of getting date of file when it was created. eg i have a file abc created on 23 aug. Now i need to know date of file i.e. 23 aug. How can i get that data. Thanks Sarbjit (7 Replies)
Discussion started by: sarbjit
7 Replies

8. UNIX for Dummies Questions & Answers

Find user password expiry date

Does anyone know a simple way to find out the expiry date of my UNIX user password? I do not have root access to the box. Surely there is a way to so this... (4 Replies)
Discussion started by: oztoma
4 Replies

9. AIX

User ID creation date

Dear All, I'd like to know is there any way to determine when a user id created in AIX? Thanks, Istvan (2 Replies)
Discussion started by: istvan.banai
2 Replies

10. UNIX for Dummies Questions & Answers

user account creation date

hi, i tried searching the forum for a thread about this, but came up empty handed. is there a way to pull a list of all user accounts, with the associated creation date? thanks in advance! (2 Replies)
Discussion started by: lilweezy
2 Replies
Login or Register to Ask a Question