Is there anyway one can determine when a user was created on Linux? I know of a couple of things one can do,but it's an unreliable way of doing it. The first option is checking when the home directory was created,running the command : ls -ld /home/user to see the time stamp. Then there is the option of checking the bash_profile or bash_logout : ls -l /home/user/.bash_profile and ls -l /home/.bash_logout. Please assist me with a more reliable way to do this!
|
feedback
|
|
Fedora, which is pretty RedHatty, seems to log the use of useradd, even when invoked by root (rather than via sudo, which would of course also leave logs):
How long you keep old copies of | |||
|
feedback
|
|
AFAIK, by default, Linux doesn't record the creation date. | |||
feedback
|
|
I don't know about the user creation time, but the first user login would be in | |||
|
feedback
|
|
You could monitor
Of course if the user is created in other ways (e.g., by editing You could always monitor changes in | |||
|
feedback
|
|
The problem is that the users has been created a long time ago, so checking the secure and auth logs are of no help. Is there any other way? | |||
|
feedback
|