Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Account Creation / Deletion 3

Status
Not open for further replies.

bambock

Programmer
Oct 26, 2005
60
US
Has anyone developed a script or have a method to monitor accounts being created or deleted in AIX.

Thanks,
Ethan
 
Why not just write a copy of /etc/passwd to a file at regular intervals. Not foolproof however. Another possibility would be to monitor smit.log for the appropriate entries.
 
Hi!

Monitoring smit.log is not enough. On one hand you might not be sure which smit.log is to be monitored (if not only root user is allowed to create users). On the other hand you can use command line to do the same (mkuser/pwdadm or even vi) which do not leave entries in smit.log.

Thus I think monitoring passwd is a better idea. How often does the user list change?

--Trifo
 
Fore account creation, you can update this file to log:

/usr/lib/security/mkuser.sys

For example,

echo $(date)"\t"$(logname)"\t"$2"\t"$1 >> /my/log/path/mk_user.log


That will log the date, the user who executed the mkuser command (even if via smit), the account name and the home directory at the time of creation.

You can log further information if wanted.

Obviously, this will not trap user additions from editing /etc/passwd directly.

-glenn
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top