Highlighted
Super Contributor.
Super Contributor.
440 views

Reports-User account created on the machine

Hi Team,

 

We have generated a report which displays the no. of users, unix computers and accounts.

 

We would like to also display when a new user account was created on the machine.

 

Should we club create time, user name or something, any ideas on how to do this? Any attribute or composition which can help us get this info?

 

Thank  You.

 

Regards

Mathew

0 Likes
4 Replies
Highlighted
Super Contributor.
Super Contributor.

Re: Reports-User account created on the machine

Hi Experts,

 

I find one attribute -"Create Time" which is a present in the CI. Is there something which we can do with this one to generate a report on knowing when a  new user account has been created on the machine?

 

Please advice.

 

Regards

Mathew

0 Likes
Highlighted
Acclaimed Contributor.. Acclaimed Contributor..
Acclaimed Contributor..

Re: Reports-User account created on the machine

Hi Mathew,

As you probably know, searching for the user creation time isn't trivial on xNIX systems.

There are some of methods (all of them not complitely working):

/var/log/wtmp will have login records (we can't assure first login will remain same as account created date )

passwd -S prints (the date in the output is the date the password was last changed)

created date of .bash_profile file of the user (we got the desired date, if the file was not modified or edited by user)

inotify-tools (With that tool you can monitor many events on a given point of your filesystem (i.e. /home) like creation of files/dirs for example. Of course, this will only work if you system is configured to create the home dir at the same time that the account is created).

 

Bottom line, it's complicated and couldn't bring simple answer.

 

You could use Create Time on User CI, but this will show when the User ws discovered for the first time. So, the correctness will depends on frequency of the discovery.

Hope this helps. 

Regards
-Dmitry Gomel, PMP
Click the Like button at the bottom to say 'Thanks'.
0 Likes
Highlighted
Super Contributor.
Super Contributor.

Re: Reports-User account created on the machine

Hi Dima,

 

Thank you for the info.

 

Will check and see how close we can get with create time.

 

Regards

Mathew

0 Likes
Highlighted
Acclaimed Contributor.. Acclaimed Contributor..
Acclaimed Contributor..

Re: Reports-User account created on the machine

Hi Mathew,

I'm interested in the progress in solving the problem. IMHO, it could be very interesting for other users on the forum. 🙂

Would you mind sharing your findings?

Regards
-Dmitry Gomel, PMP
Click the Like button at the bottom to say 'Thanks'.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.