United States-English |
|
|
HP-UX Reference > Aaudsys(1M)HP-UX 11i Version 3: February 2007 |
|
NAMEaudsys — start/halt the auditing system; set/display auditing system status information DESCRIPTIONaudsys allows the user to do the following operations: start or halt the auditing system; specify the auditing system "current" and "next" audit trails and their switch sizes; display auditing system status information; and, for regular mode, specify the number of active files that comprise an audit trail. If the number of files specified is greater than or equal to one (regular mode), the audit trail will be present on the file system as a directory with multiple files in it. If the number specified is zero (compatibility mode), the audit trail will be contained in a single file. Compatibility mode is solely supported for backward compatibility and will be obsoleted in any future releases after HP-UX 11i Version 3. This command is restricted to privileged users. The "current" audit trail is the file or directory to which the auditing system writes audit records. When the "current" trail grows to either its AuditFileSwitch (AFS) size or its FileSpaceSwitch (FSS) size (see audomon(1M)), the auditing system switches to write to the "next" audit trail. The auditing system switches audit trails by setting the "current" trail designation to the "next" trail and setting the new "next" trail to NULL. If the "next" trail is not specified, the auditing system will create a new trail with the same base name but a different timestamp extension and begin recording to it. The auditing system can also run an external command after a successful audit trail switch. See audomon(1M) for details. On a single system, the "current" and "next" trails can reside anywhere on the same or different file systems. /var/.audit is the default location for audit trails. When invoked without arguments, audsys displays the status of the auditing system. This status includes information describing whether auditing is on or off, the names of the "current" and "next" audit trails, and a table listing their switch sizes and the sizes of the file systems on which they are located, as well as the space available expressed as a percentage of the switch sizes and file system sizes. Optionsaudsys recognizes the following options:
If -c is specified without -x , only the "current" audit file is changed; the existing "next" audit file remains. If -x is specified without -c, only the "next" audit trail is changed; the existing "current" audit trail remains. The -c option can be used to manually switch from the "current" to the "next" trail by specifying the "next" trail as the new "current" trail. In this case, the trail specified becomes the new "current" trail and the "next" trail is set to NULL. In instances where no "next" trail is desired, the -x option can be used to set the "next" trail to NULL by specifying the existing "current" trail as the new "next" trail. In this case, the auditing system will create a new trail with the "current" trail's base name but a different timestamp extension as the "next" trail. The user must be careful to select audit trails that reside on file systems large enough to accommodate the AuditFileSwitch (AFS) desired. audsys returns a non-zero status and no action is performed if any of the following situations occur:
EXAMPLESExample 1: Turn on the auditing system and start recording data to /var/.audit/my_trail using 2 writer threads. Also set the AuditFileSwitch (AFS) size to 1000 kbytes. # audsys -n -N 2 -c /var/.audit/my_trail -s 1000 With AuditFileSwitch (AFS) size set to 1000 kbytes, The auditing system (See also audomon(1M)) is going to monitor the growth of /var/.audit/my_trail in size. When the size has reached approximately 1000 kbytes, the auditing system will try to switch recording data to: /var/.audit/my_trail.yyyymmddHHMM where yyyymmddHHMM are replaced by the time when the switch has happened. Example 2: Turn off the auditing system. # audsys -f This will cause any buffered data to be written out to the current audit trail. And the auditing system will stop recording any data after that. Example 3: Turn on the auditing system in compatibility mode. # audsys -n -N 0 -c /var/.audit/my_trail -s 1000 This is the same as Example 1 except that /var/.audit/my_trail will be present on the file system as a regular file instead of a directory. WARNINGSCompatibility mode and the -x option are solely supported for backward compatibility and will be obsoleted in any future releases after HP-UX 11i Version 3. All modifications made to the audit system are lost upon reboot. To make the changes permanent, set AUDITING, PRI_AUDFILE, PRI_SWITCH, SEC_AUDFILE, SEC_SWITCH, and NTRHEADS in /etc/rc.config.d/auditing. A user process will be blocked in the kernel if all of the following events occur:
A user process will also be blocked in the kernal if both of these events occur:
In order to recover from the resulting deadlock, it will be necessary to kill the session leader of the console so that the administrator can login. For this reason sensitive applications must not be run as session leaders on the console. |
Printable version | ||
|