Command reference / sec
CHGUSRAUD
Change User Auditing
Updates security auditing settings for a user profile. The system's QAUDCTL value determines when auditing is active.
Allowed environments: *ALL.
Positional parameters: 3.
Parameters
USRPRF
User profile
Sets one or more user profiles whose auditing values are to be changed. A maximum of 50 user names can be specified.
OBJAUD
Object auditing value
Sets the object auditing value for the user. This value only takes effect if the object auditing (OBJAUD) value for the object to be accessed has the value *USRPRF.
Allowed values:
*SAME, *NONE, *CHANGE, *ALL
*SAME- Keep the current setting.
*NONE- The auditing value for the object determines when auditing is performed.
*CHANGE- All change accesses by this user on all objects with the *USRPRF audit value are logged.
*ALL- All change and read accesses by this user on all objects with the *USRPRF audit value are logged.
AUDLVL
User action auditing
Choose additional activities to audit for this user. IBM i combines these selections with the system-wide settings in QAUDLVL and QAUDLVL2.
Allowed values:
*SAME, *NONE, *NONE Other values (up to 33 repetitions): *AUTFAIL, *CMD, *CREATE, *DELETE, *JOBBAS, *JOBCHGUSR, *JOBDTA, *NETBAS, *NETCLU, *NETCMN, *NETFAIL, *NETSCK, *NETSECURE, *NETUDP, *OBJMGT, *OFCSRV, *OPTICAL, *PGMADP, *PGMFAIL, *PRTDTA, *SAVRST, *SECCFG, *SECDIRSRV, *SECIPC, *SECNAS, *SECRUN, *SECSCKD, *SECURITY, *SECVFY, *SECVLDL, *SERVICE, *SPLFDTA, *SYSMGT
*SAME- Keep the current setting.
*NONE- Leave auditing level unspecified. The auditing level for this user is taken from system values QAUDLVL and QAUDLVL2.
*AUTFAIL- Authorization failures are audited. The following are some examples: All access failures (authorization, job submission) Incorrect password entered with a command such as CHKPWD or on a call to an API.
*CMD- CL command strings, System/36 environment operator control commands, and System/36 environment procedures are logged for this user.
*CREATE- All object creations are audited. Objects created into library QTEMP are not audited. The following are some examples: Newly-created objects Objects created to replace an existing object.
*DELETE- All deletions of external objects on the system are audited. Objects deleted from library QTEMP are not audited.
*JOBBAS- Job base functions are audited. The following are some examples: Job start and stop data Hold, release, stop, continue, change, disconnect, end, end abnormal, PSR-attached to prestart job entries.
*JOBCHGUSR- Changes to a thread's active user profile or its group profiles are audited.
*JOBDTA- Actions that affect a job are audited.
*NETBAS- Network base functions are audited. The following are some examples: IP rules actions Sockets connections APPN Directory search filter APPN end point filter.
*NETCLU- Cluster or cluster resource group operations are audited. The following are some examples: Add, create, and delete Distribution End Fail over List information Removal Start Switch Update attributes.
*NETCMN- Networking and communications functions are audited.
*NETFAIL- Network failures are audited. The following is an example: Socket port not available.
*NETSCK- Sockets tasks are audited. The following are some examples: Accept Connect DHCP address assigned DHCP address not assigned Filtered mail Reject mail.
*NETSECURE- Secure network connections are audited. The following are some examples: Successful secure network connection Failed system TLS connection.
*NETUDP- User Datagram Protocol (UDP) traffic is audited. The following are some examples: UDP packets sent UDP packets received Note: UDP traffic for the same local and remote address and port is audited only once every 12 hours by default.
*OBJMGT- Generic object tasks are audited. The following are some examples: Moves of objects Renames of objects.
*OFCSRV- OfficeVision are audited. The following are some examples: Changes to the system distribution directory Tasks involving electronic mail.
*OPTICAL- All optical functions are audited.
*PGMADP- Adopting authority from a program owner is audited.
*PGMFAIL- Program failures are audited. The following are some examples: Blocked instruction Validation value failure Domain violation.
*PRTDTA- Printing functions with parameter SPOOL(*NO) are audited.
*SAVRST- Save and restore information is audited.
*SECCFG- Security configuration is audited.
*SECDIRSRV- Changes or updates when doing directory service functions are audited. The following are some examples: Audit change Successful bind Authority change Password change Ownership change Successful unbind.
*SECIPC- Changes to interprocess communications are audited. The following are some examples: Ownership or authority of an IPC object changed Create, delete or get of an IPC object Shared memory attach.
*SECNAS- Network authentication service actions are audited.
*SECRUN- Security run time functions are audited. The following are some examples: Changes to object ownership Changes to authorization list or object authority Changes to the primary group of an object.
*SECSCKD- Socket descriptors are audited. The following are some examples: A socket descriptor was given to another job Receive descriptor Unable to use descriptor.
*SECURITY- All security-related functions are audited.
*SECVFY- Use of verification functions are audited.
*SECVLDL- Changes to validation list objects are audited. The following are some examples: Add, change, remove of a validation list entry Find of a validation list entry Successful and unsuccessful verify of a validation list entry.
*SERVICE- For a list of all the service commands and API calls that are audited, see the IBM i Security Reference, SC41-5302 publication.
*SPLFDTA- Spooled file functions are audited. The following are some examples: Create, delete, display, copy, hold, and release a spooled file Get data from a spooled file (QSPGETSP) Change spooled file attributes (CHGSPLFA command)
*SYSMGT- System management tasks are audited.
Examples
CHGUSRAUD USRPRF(FRED) OBJAUD(*CHANGE) AUDLVL(*CREATE *DELETE)
Changes the auditing value in the user profile of the user FRED. All objects whose object auditing value is *USRPRF are audited when they are changed by user FRED.
Generated from os/cl/catalog/CHGUSRAUD.json and os/cl/help/CHGUSRAUD.json.