11.\" Automatically generated by Pandoc 3.6.3
22.\"
3- .TH "SUDOERS" "5" "" "sudo\- rs 0.2.14 " "sudo\- rs"
3+ .TH "SUDOERS" "5" "" "sudo\- rs 0.2.15 " "sudo\- rs"
44.SH NAME
55\f[CR] sudoers \f[ R ] \- sudo\- compatible security configuration
66.SH DESCRIPTION
@@ -671,7 +671,7 @@ also present in a different file.
671671When managing enterprise\- wide sudoers rules, it is sometimes preferable
672672to store them in a centralized repository.
673673The \[at ] socket directive can be used to include the contents provided
674- by a server application over a unix domain socket.
674+ by a server application over a Unix domain socket.
675675For example, providing:
676676.IP
677677.EX
@@ -686,16 +686,19 @@ There is, however, one exception: when reading from a socket, the
686686accepted.
687687.PP
688688For security reasons, a user and optionally a group must be given,
689- enclosed in parentheses and separated by a colon. Users and groups can
690- be specified either by their name or by their numeric id preceded by a
691- hash sign (#). When the socket is opened, and before any interaction with
692- it, sudo will check that the peer process at the other side of the socket
693- runs as the declared user and group (if the latter was provided). If any
694- of these conditions fail, the socket is immediately closed and discarded.
689+ enclosed in parentheses and separated by a colon.
690+ Users and groups can be specified either by their name or by their
691+ numeric id preceded by a hash sign (#).
692+ When the socket is opened, and before any interaction with it, sudo will
693+ check that the peer process at the other side of the socket runs as the
694+ declared user and group (if the latter was provided).
695+ If any of these conditions fail, the socket is immediately closed and
696+ discarded.
695697Only POSIX groups can be used.
696698.PP
697- Please note that visudo cannot read from a socket. Furthermore, the
698- contents retrieved from a socket are considered immutable by sudo.
699+ Please note that visudo cannot read from a socket.
700+ Furthermore, the contents retrieved from a socket are considered
701+ immutable by sudo.
699702.SS Other special characters and reserved words
700703The pound sign (`#') is used to indicate a comment (unless it is part of
701704a #include directive or unless it occurs in the context of a user name
@@ -749,6 +752,14 @@ A list of all supported Defaults parameters, grouped by type, are listed
749752below.
750753.SS Boolean Flags:
751754.IP \[bu ] 2
755+ log_allowed
756+ .RS 2
757+ .PP
758+ If set, sudoers will log commands allowed by the policy to the system
759+ log.
760+ This flag is on by default.
761+ .RE
762+ .IP \[bu ] 2
752763noexec
753764.RS 2
754765.PP
@@ -759,15 +770,19 @@ shell escapes\f[R] section at the end of this manual.
759770This flag is off by default.
760771.RE
761772.IP \[bu ] 2
762- noninteractive_auth If set, authentication will be attempted even in
763- non\- interactive mode (when sudo\[cq ] s \- n option is specified).
773+ noninteractive_auth
774+ .RS 2
775+ .PP
776+ If set, authentication will be attempted even in non\- interactive mode
777+ (when sudo\[cq ] s \- n option is specified).
764778This allows authentication methods that don\[cq ] t require user
765779interaction to succeed.
766780Authentication methods that require input from the user\[cq ] s terminal
767781will still fail.
768782If disabled, authentication will not be attempted in non\- interactive
769783mode.
770784This flag is off by default.
785+ .RE
771786.IP \[bu ] 2
772787env_editor
773788.RS 2
@@ -917,6 +932,32 @@ The default on Linux is
917932\f[I] /usr/bin/editor:/usr/bin/nano:/usr/bin/vi \f[ R ] .
918933On FreeBSD the default is \f[I] /usr/bin/vi \f[ R ] .
919934.RE
935+ .IP \[bu ] 2
936+ timestamp_type
937+ .RS 2
938+ .PP
939+ sudo\- rs uses per\- user timestamp files for credential caching.
940+ The \f[I] timestamp_type \f[ R ] option can be used to specify the type of
941+ timestamp record used.
942+ It has two possible values: \f[I] tty \f[ R ] and \f[I] ppid \f[ R ] .
943+ There is no support for a \f[I] global \f[ R ] or \f[I] kernel \f[ R ] setting.
944+ .IP \[bu ] 2
945+ \f[I] ppid \f[ R ] : A single timestamp record is used for all processes with
946+ the same parent process ID (usually the shell).
947+ Commands run from the same shell (or other common parent process) will
948+ not require a password while the timestamp is valid (see
949+ \f[I] timestamp_timeout \f[ R ] ).
950+ Commands run via sudo with a different parent process ID, for example
951+ from a shell script, must be authenticated separately.
952+ .IP \[bu ] 2
953+ \f[I] tty \f[ R ] : One timestamp record is used for each terminal, which
954+ means that a user\[cq ] s login sessions are authenticated separately.
955+ If no terminal is present, the behavior is the same as \f[I] ppid \f[ R ] .
956+ Commands run from the same terminal will not require a password while
957+ the timestamp is valid.
958+ .PP
959+ The default value is \f[B] tty \f[ R ] .
960+ .RE
920961.SS Strings that can be used in a boolean context:
921962.IP \[bu ] 2
922963apparmor_profile
0 commit comments