]> granicus.if.org Git - sudo/commitdiff
Document the names of the I/O log files and mention buffering.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 11 Dec 2015 17:04:17 +0000 (10:04 -0700)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 11 Dec 2015 17:04:17 +0000 (10:04 -0700)
Document that I/O logs are in gzip format by default.

doc/sudoers.cat
doc/sudoers.man.in
doc/sudoers.mdoc.in

index 0faa7cb6cb6d9495e15c4365c19d86cbd540daa3..273248c5d4609c33d9910cb49a1fc113cba1ae5d 100644 (file)
@@ -1045,7 +1045,7 @@ S\bSU\bUD\bDO\bOE\bER\bRS\bS O\bOP\bPT\bTI\bIO\bON\bNS\bS
      log_host          If set, the host name will be logged in the (non-
                        syslog) s\bsu\bud\bdo\bo log file.  This flag is _\bo_\bf_\bf by default.
 
-     log_input         If set, s\bsu\bud\bdo\bo will run the command in a _\bp_\bs_\be_\bu_\bd_\bo _\bt_\bt_\by and
+     log_input         If set, s\bsu\bud\bdo\bo will run the command in a _\bp_\bs_\be_\bu_\bd_\bo_\b-_\bt_\bt_\by and
                        log all user input.  If the standard input is not
                        connected to the user's tty, due to I/O redirection or
                        because the command is part of a pipeline, that input
@@ -1057,7 +1057,12 @@ S\bSU\bUD\bDO\bOE\bER\bRS\bS O\bOP\bPT\bTI\bIO\bON\bNS\bS
                        unique session ID that is included in the normal s\bsu\bud\bdo\bo
                        log line, prefixed with ``TSID=''.  The _\bi_\bo_\bl_\bo_\bg_\b__\bf_\bi_\bl_\be
                        option may be used to control the format of the session
-                       ID.
+                       ID.  Input from the user's tty is logged to the _\bt_\bt_\by_\bi_\bn
+                       file.  Input from a pipe or file is logged to the _\bs_\bt_\bd_\bi_\bn
+                       file.  These files are in gzip (compressed) format
+                       unless the _\bc_\bo_\bm_\bp_\br_\be_\bs_\bs_\b__\bi_\bo option has been disabled.  Due
+                       to buffering, the I/O log data will not be complete
+                       until the s\bsu\bud\bdo\bo command has completed.
 
                        Note that user input may contain sensitive information
                        such as passwords (even if they are not echoed to the
@@ -1065,7 +1070,7 @@ S\bSU\bUD\bDO\bOE\bER\bRS\bS O\bOP\bPT\bTI\bIO\bON\bNS\bS
                        unencrypted.  In most cases, logging the command output
                        via _\bl_\bo_\bg_\b__\bo_\bu_\bt_\bp_\bu_\bt is all that is required.
 
-     log_output        If set, s\bsu\bud\bdo\bo will run the command in a _\bp_\bs_\be_\bu_\bd_\bo _\bt_\bt_\by and
+     log_output        If set, s\bsu\bud\bdo\bo will run the command in a _\bp_\bs_\be_\bu_\bd_\bo_\b-_\bt_\bt_\by and
                        log all output that is sent to the screen, similar to
                        the script(1) command.  If the standard output or
                        standard error is not connected to the user's tty, due
@@ -1078,7 +1083,13 @@ S\bSU\bUD\bDO\bOE\bER\bRS\bS O\bOP\bPT\bTI\bIO\bON\bNS\bS
                        unique session ID that is included in the normal s\bsu\bud\bdo\bo
                        log line, prefixed with ``TSID=''.  The _\bi_\bo_\bl_\bo_\bg_\b__\bf_\bi_\bl_\be
                        option may be used to control the format of the session
-                       ID.
+                       ID.  Output from the pseudo-tty is logged to the _\bt_\bt_\by_\bo_\bu_\bt
+                       file.  Output to a pipe or redirected to a file is
+                       logged to the either the _\bs_\bt_\bd_\bo_\bu_\bt or _\bs_\bt_\bd_\be_\br_\br files.  These
+                       files are in gzip (compressed) format unless the
+                       _\bc_\bo_\bm_\bp_\br_\be_\bs_\bs_\b__\bi_\bo option has been disabled.  Due to
+                       buffering, the I/O log data will not be complete until
+                       the s\bsu\bud\bdo\bo command has completed.
 
                        Output logs may be viewed with the sudoreplay(1m)
                        utility, which can also be used to list or search the
@@ -2482,4 +2493,4 @@ D\bDI\bIS\bSC\bCL\bLA\bAI\bIM\bME\bER\bR
      file distributed with s\bsu\bud\bdo\bo or https://www.sudo.ws/license.html for
      complete details.
 
-Sudo 1.8.16                    November 20, 2015                   Sudo 1.8.16
+Sudo 1.8.16                    December 11, 2015                   Sudo 1.8.16
index a4aa8c09e116cc5c6317ca7a2f147a9e06ed484f..a195a5a7ed61a1447cb672d2307a82fe4a011151 100644 (file)
@@ -21,7 +21,7 @@
 .\" Agency (DARPA) and Air Force Research Laboratory, Air Force
 .\" Materiel Command, USAF, under agreement number F39502-99-1-0512.
 .\"
-.TH "SUDOERS" "5" "November 20, 2015" "Sudo @PACKAGE_VERSION@" "File Formats Manual"
+.TH "SUDOERS" "5" "December 11, 2015" "Sudo @PACKAGE_VERSION@" "File Formats Manual"
 .nh
 .if n .ad l
 .SH "NAME"
@@ -2233,7 +2233,7 @@ log_input
 If set,
 \fBsudo\fR
 will run the command in a
-\fIpseudo tty\fR
+\fIpseudo-tty\fR
 and log all user input.
 If the standard input is not connected to the user's tty, due to
 I/O redirection or because the command is part of a pipeline, that
@@ -2254,6 +2254,18 @@ log line, prefixed with
 The
 \fIiolog_file\fR
 option may be used to control the format of the session ID.
+Input from the user's tty is logged to the
+\fIttyin\fR
+file.
+Input from a pipe or file is logged to the
+\fIstdin\fR
+file.
+These files are in gzip (compressed) format unless the
+\fIcompress_io\fR
+option has been disabled.
+Due to buffering, the I/O log data will not be complete until the
+\fBsudo\fR
+command has completed.
 .sp
 Note that user input may contain sensitive information such as
 passwords (even if they are not echoed to the screen), which will
@@ -2266,7 +2278,7 @@ log_output
 If set,
 \fBsudo\fR
 will run the command in a
-\fIpseudo tty\fR
+\fIpseudo-tty\fR
 and log all output that is sent to the screen, similar to the
 script(1)
 command.
@@ -2290,6 +2302,20 @@ log line, prefixed with
 The
 \fIiolog_file\fR
 option may be used to control the format of the session ID.
+Output from the pseudo-tty is logged to the
+\fIttyout\fR
+file.
+Output to a pipe or redirected to a file is logged to the either the
+\fIstdout\fR
+or
+\fIstderr\fR
+files.
+These files are in gzip (compressed) format unless the
+\fIcompress_io\fR
+option has been disabled.
+Due to buffering, the I/O log data will not be complete until the
+\fBsudo\fR
+command has completed.
 .sp
 Output logs may be viewed with the
 sudoreplay(@mansectsu@)
index a17e4b6f3f5b3e147db2f05e773c8b0676c7b784..3c608363ae7d0778f1163a1c3396afd6f22f47d2 100644 (file)
@@ -19,7 +19,7 @@
 .\" Agency (DARPA) and Air Force Research Laboratory, Air Force
 .\" Materiel Command, USAF, under agreement number F39502-99-1-0512.
 .\"
-.Dd November 20, 2015
+.Dd December 11, 2015
 .Dt SUDOERS @mansectform@
 .Os Sudo @PACKAGE_VERSION@
 .Sh NAME
@@ -2091,7 +2091,7 @@ by default.
 If set,
 .Nm sudo
 will run the command in a
-.Em pseudo tty
+.Em pseudo-tty
 and log all user input.
 If the standard input is not connected to the user's tty, due to
 I/O redirection or because the command is part of a pipeline, that
@@ -2114,6 +2114,18 @@ log line, prefixed with
 The
 .Em iolog_file
 option may be used to control the format of the session ID.
+Input from the user's tty is logged to the
+.Pa ttyin
+file.
+Input from a pipe or file is logged to the
+.Pa stdin
+file.
+These files are in gzip (compressed) format unless the
+.Em compress_io
+option has been disabled.
+Due to buffering, the I/O log data will not be complete until the
+.Nm sudo
+command has completed.
 .Pp
 Note that user input may contain sensitive information such as
 passwords (even if they are not echoed to the screen), which will
@@ -2125,7 +2137,7 @@ is all that is required.
 If set,
 .Nm sudo
 will run the command in a
-.Em pseudo tty
+.Em pseudo-tty
 and log all output that is sent to the screen, similar to the
 .Xr script 1
 command.
@@ -2151,6 +2163,20 @@ log line, prefixed with
 The
 .Em iolog_file
 option may be used to control the format of the session ID.
+Output from the pseudo-tty is logged to the
+.Pa ttyout
+file.
+Output to a pipe or redirected to a file is logged to the either the
+.Pa stdout
+or
+.Pa stderr
+files.
+These files are in gzip (compressed) format unless the
+.Em compress_io
+option has been disabled.
+Due to buffering, the I/O log data will not be complete until the
+.Nm sudo
+command has completed.
 .Pp
 Output logs may be viewed with the
 .Xr sudoreplay @mansectsu@