Monitoring AIX Users
Audience: AIX Administrators and End Users
Date: July 16, 1999Monitoring user activity is an important system administration task. Here are a few usefulAIX commands for monitoring user activity.
CommandDescription
lastDisplay information about previous logins, including logindate/time, logout time, originating remote host.who List users who are currently logged on. ps -fu "userid" List processes being run by "userid"..sh_historyText file located in the home directory of each Korn shell user.The file contains the last 50 commands issued by the user./var/adm/sulog Text file containing all "su" activity./etc/security/failedloginBinary file containing a listing of all failed login attempts. Thefile can be read by only root, using "who failedlogin"AIX has two other facilities for monitoring user activity on a more granular level. Thefirst is "Accounting" which monitors user's connect time and system usage (cpu bycommand, diskstorage and printer usage). The second is "Auditing", a security relatedfunction, which provides a detailed audit trail of each user's activity, including priviledgefailures, commands run, files they view/create/delete, and more. Both Accounting andAuditing are part of the base AIX operating system. However, both must be configured torun. The attachment HTML files discuss how to set up accounting and auditing. See your AIX documentation for more information.
AIX System Security Audit [audit.all.cmd]
AIX System Security Audit-------------------------------------------------------------------------------ContentsAbout This DocumentRelated DocumentationOverviewAuditing Events and ObjectsAuditing Mode: BIN and STREAMStarting and Stopping AuditAuditing ConfigurationAuditing a UserAuditing an ObjectDisk Space ConsiderationUnderstanding the OutputCommon Problems with Auditing
Leave a Comment