UCMDB and UD Practitioners Forum (Previously CMS)
cancel

Reports-User account created on the machine

Highlighted
Mathew_ucmdb
Super Contributor.

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

4 REPLIES
Mathew_ucmdb
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

Dima Gomel
Micro Focus Expert

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
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
Click the Like button at the bottom to say 'Thanks'.
Mathew_ucmdb
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

Dima Gomel
Micro Focus Expert

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
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
Click the Like button at the bottom to say 'Thanks'.