⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 auditd.8

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 8
字号:
.\" SCCSID: @(#)auditd.8	4.0	11/04/14/89.TH auditd 8.SH Nameauditd \- audit daemon .SH Syntax.B /etc/sec/auditd [.I options ...].SH Description .NXR "audit daemon"The audit daemon, .PN auditd , operates as a server,monitoring .PN /dev/auditfor local auditdata, monitoring a known port for data from remote cooperating auditdaemons, and monitoring an AF_UNIX socket for input from the systemadministrator. .PPLocal audit data is read from the.PN /dev/auditdevice.  Data read from .PN /dev/auditis buffered by the audit daemon, and eventually output into the auditlog when the buffer nears capacity or the daemon receives an explicit instruction from the administrator to flush its buffer..PPLocal administrative data is read via the socket .PN /tmp/.audit/audS .  Input from the system administrator allows for changing of the daemon's configurableoptions.  The administrator communicates with the audit daemon byexecuting .PN auditdwith the desired options.  The first invocation of .PN auditdspawns the daemon; subsequent invocations detect that an auditdaemon already exists and will communicate with it, passing alongdirections for the selected options.  The first invocation of the daemon also turns on auditing for the system (.MS audcntl 2 ).  When the daemon is terminated, by the \f(CW-k\fR option orthe SIGTERM signal, auditing is turned off.It is important not to have system auditing turned on when there is noaudit daemon running on the system (processes being audited will sleep until .PN /dev/auditis read, which is typically done by the audit daemon)..PPRemote audit data is first detected when the remote audit daemon attempts to communicate with the local audit daemon.  To establish a communications path between the remote and the local daemons, the remote audit daemons hostname is first checked against a list of hosts allowed to transmit data to the local host.  This list is maintained in .PN /etc/auditd_clients.  If the remote host is allowed to transfer audit data to the local host, a child audit daemon dedicated to communicating with the remote host is spawned..SH Options.NXR "auditd command" "options".IP "\fB-a\fR" 12Toggle the KERBEROS switch.  If on, KERBEROS authentication routines will be used to verify the identity of any audit daemons attempting to communicate.  This occurs either when sending to a remote host (bythe \f(CW-i\fR option) or accepting from remote hosts (by the \f(CW-s\fR option)..IP "\fB-b \fIalternate_pathname\fR" 12Sets the pathname to which the audit daemon will write its data should the location currently accepting data become unavailable.  This can happen should the current location specify a remote host which is no longer available, or when the filesystem of the current location reaches an overflow condition (in this case, the alternate pathname must specify a partition other than the currently overflowing partition)..IP "\fB-c \fIpathname\fR" 12Sets the pathname to which the audit daemon will post any warning or informational messages (such as "audit log change").  This may be either a device or local file..IP "\fB-d\fR" 12Causes the audit daemon to dump its currently buffered audit data outto.PN /dev/audit .  The audit daemon normally dumps its buffer only when it approaches capacity..IP "\fB-f \fIpercentage\fR" 12Sets the minimum percent free space on the current partition before an overflow condition is triggered..IP "\fB-h\fR" 12Outputs a brief help menu..IP "\fB-i \fIhostname\fR" 12Causes the audit daemon to transfer its audit data to the audit daemon executing on the remote host \fIhostname\fR.  If the remote site stops receiving, the local daemon will store its datalocally (in \fIalternate_pathname\fR if available)..IP "\fB-k\fR" 12Kills the audit daemon (killing the local daemon turns audit off)..IP "\fB-l \fIpathname\fR" 12Causes the audit daemon to output its audit data to the localfile \fIpathname\fR..IP "\fB-n \fIkbytes\fR" 12Sets the size of the audit daemons buffer for the audit data (minimum is 4)..IP "\fB-o \fIoverflow action\fR" 12Sets the system action to take on a local overflow condition.  Alternativesare a) use the alternate log specified via \-b option, b) shutdown the system, c) switch to the root-mounted filesystem with the most free space, d) suspend auditing until space is made available, and e) overwrite the current auditlog..IP "\fB-p \fIdaemon id\fR" 12Specifies the id of the audit daemon to receive the current options.  When the local audit daemon accepts a connection to receive data from a remote audit daemon, a dedicated child audit daemon is spawned off from the local audit daemon to service that connection.  With this scenario, multiple audit daemonsmay exist on a single system.  Specifying the id of the .PN auditdallows for communication with one of the child audit daemons.  Theid for each daemon can be found by entering the following at thecommand line:.EX.B /etc/sec/auditd -?.EEThe previous command line displaysthe current options.  No id's are displayed unless at least one child audit daemon exists.If the \f(CW-p\fR option is not specified when running withmore than one audit daemon, the master daemon (accepting audit data for the local system) handles the request.  When the master daemon is killed, it kills all of its child daemons..IP "\fB-q\fR" 12Queries the audit daemon for the current location of the audit data..IP "\fB-s\fR" 12Toggles the network server switch.  If on, allows the audit daemon to accept audit data from other audit daemons whose hostnames are specified in the .PN /etc/auditd_clientsfile..IP "\fB-t \fItimeout value\fR" 12Sets the timeout value used in establishing initial connections with remoteaudit daemons..IP "\fB-x\fR" 12Auditlog pathnames are always appended with a suffix consisting of a generation number.  These generation numbers range from 0 to 999.  (Generation numbers may be overridden via explicit generation number specification on the pathname for the \f(CW-lfR option, for example auditlog.345).The \f(CW-x\fR option causes a change in auditlog to the next auditlog in the generation number sequence.  (If the current log was auditlog.345, then \f(CW-x\fR would change the log to auditlog.346).  Whenever an auditlog is closed, it is also compressed (by .PN /usr/ucb/compress )..IP "\fB-z\fR" 12Removes any AF_UNIX sockets left by previous daemons.  This occurs when the system shuts down abnormally.  This option is useful typically only for the .PN auditd invocation from the .PN /etc/rc.localfile.  If noAF_UNIX socket is present, the next invocation of .PN auditd will start the.PN audit daemon.  If an AF_UNIX socket is present, the next invocation of .PN auditdwill spawn a client process which will communicate with the system auditdaemon.  This \f(CW-z\fR option removes any leftover AF_UNIX sockets, forcinga new audit daemon to start.  This should be used only when no audit daemonis present on the system..IP "\fB-?\fR" 12Shows the current status of the audit daemons options..SH Files.PN /etc/auditd_clients.SH See Alsoaudcntl(2), audit(4)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -