Avoid using "note that" and "note: " in documentation.
This commit is contained in:
52
INSTALL.md
52
INSTALL.md
@@ -49,11 +49,11 @@ for a list of packages required to build sudo.
|
|||||||
you may file a bug report at https://bugzilla.sudo.ws/ or an issue at
|
you may file a bug report at https://bugzilla.sudo.ws/ or an issue at
|
||||||
https://github.com/sudo-project/sudo/issues/ (not both).
|
https://github.com/sudo-project/sudo/issues/ (not both).
|
||||||
|
|
||||||
5. Type `make install` (as root) to install sudo, visudo, the
|
5. Type `make install` (as root) to install sudo, visudo, the man
|
||||||
man pages, and a skeleton sudoers file. Note that the install
|
pages, and a skeleton sudoers file. The install will not overwrite
|
||||||
will not overwrite an existing sudoers file. You can also
|
an existing sudoers file. You can also install various pieces of
|
||||||
install various pieces the package via the install-binaries,
|
the package via the install-binaries, install-doc, and install-sudoers
|
||||||
install-doc, and install-sudoers make targets.
|
make targets.
|
||||||
|
|
||||||
6. Edit the sudoers file with `visudo` as necessary for your
|
6. Edit the sudoers file with `visudo` as necessary for your
|
||||||
site. You will probably want to refer the example sudoers
|
site. You will probably want to refer the example sudoers
|
||||||
@@ -349,7 +349,7 @@ Defaults are listed in brackets after the description.
|
|||||||
Disable natural language support. By default, sudo will
|
Disable natural language support. By default, sudo will
|
||||||
use the gettext() family of functions, if available, to
|
use the gettext() family of functions, if available, to
|
||||||
implement messages in the invoking user's native language.
|
implement messages in the invoking user's native language.
|
||||||
Note that translations do not exist for all languages.
|
Translations do not exist for all languages.
|
||||||
|
|
||||||
--with-ldap[=DIR]
|
--with-ldap[=DIR]
|
||||||
Enable LDAP support. If specified, DIR is the base directory
|
Enable LDAP support. If specified, DIR is the base directory
|
||||||
@@ -524,9 +524,9 @@ Defaults are listed in brackets after the description.
|
|||||||
for BSD/OS and OpenBSD systems that support it.
|
for BSD/OS and OpenBSD systems that support it.
|
||||||
It is not possible to mix BSD authentication with other
|
It is not possible to mix BSD authentication with other
|
||||||
authentication methods (and there really should be no need
|
authentication methods (and there really should be no need
|
||||||
to do so). Note that only the newer BSD authentication API
|
to do so). Only the newer BSD authentication API is
|
||||||
is supported. If you don't have /usr/include/bsd_auth.h
|
supported. If you don't have /usr/include/bsd_auth.h then
|
||||||
then you cannot use this.
|
you cannot use this.
|
||||||
|
|
||||||
--with-DCE
|
--with-DCE
|
||||||
Enable DCE support for systems without PAM. Known to work on
|
Enable DCE support for systems without PAM. Known to work on
|
||||||
@@ -570,7 +570,7 @@ Defaults are listed in brackets after the description.
|
|||||||
Enable PAM support. This is on by default for Darwin, FreeBSD,
|
Enable PAM support. This is on by default for Darwin, FreeBSD,
|
||||||
Linux, NetBSD, Solaris, and HP-UX (version 11 and higher).
|
Linux, NetBSD, Solaris, and HP-UX (version 11 and higher).
|
||||||
|
|
||||||
NOTE: on RedHat Linux and Fedora you **must** have an `/etc/pam.d/sudo`
|
On RedHat Linux and Fedora you **must** have an `/etc/pam.d/sudo`
|
||||||
file installed. You may either use the example pam.conf file included
|
file installed. You may either use the example pam.conf file included
|
||||||
with sudo or use `/etc/pam.d/su` as a reference. The pam.conf file
|
with sudo or use `/etc/pam.d/su` as a reference. The pam.conf file
|
||||||
included with sudo may or may not work with other Linux distributions.
|
included with sudo may or may not work with other Linux distributions.
|
||||||
@@ -798,10 +798,10 @@ Defaults are listed in brackets after the description.
|
|||||||
file. Ie: instead of myhost you would use myhost.mydomain.edu. You may
|
file. Ie: instead of myhost you would use myhost.mydomain.edu. You may
|
||||||
still use the short form if you wish (and even mix the two). Beware
|
still use the short form if you wish (and even mix the two). Beware
|
||||||
that turning FQDN on requires sudo to make DNS lookups which may make
|
that turning FQDN on requires sudo to make DNS lookups which may make
|
||||||
sudo unusable if your DNS is totally hosed. Also note that you must
|
sudo unusable if your DNS is totally hosed. You must use the host's
|
||||||
use the host's official name as DNS knows it. That is, you may not use
|
official name as DNS knows it. That is, you may not use a host alias
|
||||||
a host alias (CNAME entry) due to performance issues and the fact that
|
(CNAME entry) due to performance issues and the fact that there is no
|
||||||
there is no way to get all aliases from DNS.
|
way to get all aliases from DNS.
|
||||||
Sudoers option: fqdn
|
Sudoers option: fqdn
|
||||||
|
|
||||||
--with-goodpri=PRIORITY
|
--with-goodpri=PRIORITY
|
||||||
@@ -940,7 +940,7 @@ Defaults are listed in brackets after the description.
|
|||||||
users to have a reasonable PATH environment variable you may want
|
users to have a reasonable PATH environment variable you may want
|
||||||
to use this. Another use is if you want to have the "root path"
|
to use this. Another use is if you want to have the "root path"
|
||||||
be separate from the "user path." You will need to customize the
|
be separate from the "user path." You will need to customize the
|
||||||
path for your site. NOTE: this is not applied to users in the group
|
path for your site. This is not applied to users in the group
|
||||||
specified by --with-exemptgroup. If you do not specify a path,
|
specified by --with-exemptgroup. If you do not specify a path,
|
||||||
"/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc" is used.
|
"/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc" is used.
|
||||||
Sudoers option: secure_path
|
Sudoers option: secure_path
|
||||||
@@ -955,22 +955,20 @@ Defaults are listed in brackets after the description.
|
|||||||
Sudoers options: !mailerpath or !mailto
|
Sudoers options: !mailerpath or !mailto
|
||||||
|
|
||||||
--with-sudoers-mode=MODE
|
--with-sudoers-mode=MODE
|
||||||
File mode for the sudoers file (octal). Note that if you
|
File mode for the sudoers file (octal). If you wish to
|
||||||
wish to NFS-mount the sudoers file this must be group
|
NFS-mount the sudoers file this must be group readable.
|
||||||
readable. This value may overridden at run-time in the
|
This value may overridden at run-time in the sudo.conf file.
|
||||||
sudo.conf file. The default mode is 0440.
|
The default mode is 0440.
|
||||||
|
|
||||||
--with-sudoers-uid=UID
|
--with-sudoers-uid=UID
|
||||||
User id that "owns" the sudoers file. Note that this is
|
User id that "owns" the sudoers file. This is the numeric
|
||||||
the numeric id, **not** the symbolic name. This value may
|
id, **not** the symbolic name. This value may overridden
|
||||||
overridden at run-time in the sudo.conf file. The default
|
at run-time in the sudo.conf file. The default is 0.
|
||||||
is 0.
|
|
||||||
|
|
||||||
--with-sudoers-gid=GID
|
--with-sudoers-gid=GID
|
||||||
Group id that "owns" the sudoers file. Note that this is
|
Group id that "owns" the sudoers file. This is the numeric
|
||||||
the numeric id, **not** the symbolic name. This value may
|
id, **not** the symbolic name. This value may overridden
|
||||||
overridden at run-time in the sudo.conf file. The default
|
at run-time in the sudo.conf file. The default is 0.
|
||||||
is 0.
|
|
||||||
|
|
||||||
--with-timeout=NUMBER
|
--with-timeout=NUMBER
|
||||||
Number of minutes that can elapse before sudo will ask for a passwd
|
Number of minutes that can elapse before sudo will ask for a passwd
|
||||||
|
@@ -191,13 +191,14 @@ for a list of supported ldap.conf parameters and an example ldap.conf
|
|||||||
Make sure you sudoers_base matches the location you specified when you
|
Make sure you sudoers_base matches the location you specified when you
|
||||||
imported the sudoers ldif data.
|
imported the sudoers ldif data.
|
||||||
|
|
||||||
After configuring /etc/ldap.conf, you must add a line in /etc/nsswitch.conf
|
After configuring /etc/ldap.conf, you must add a line in the
|
||||||
to tell sudo to look in LDAP for sudoers. See the "Configuring nsswitch.conf"
|
/etc/nsswitch.conf file to tell sudo to look in LDAP for sudoers.
|
||||||
section in the sudoers.ldap manual for details. Note that sudo will use
|
See the "Configuring nsswitch.conf" section in the sudoers.ldap
|
||||||
/etc/nsswitch.conf even if the underlying operating system does not support it.
|
manual for details. Sudo will use /etc/nsswitch.conf even if the
|
||||||
To disable nsswitch support, run configure with the `--with-nsswitch=no` option.
|
underlying operating system does not support it. To disable nsswitch
|
||||||
This will cause sudo to consult LDAP first and /etc/sudoers second, unless the
|
support, run configure with the `--with-nsswitch=no` option. This
|
||||||
ignore_sudoers_file flag is set in the global LDAP options.
|
will cause sudo to consult LDAP first and /etc/sudoers second,
|
||||||
|
unless the ignore_sudoers_file flag is set in the global LDAP options.
|
||||||
|
|
||||||
## Debugging your LDAP configuration
|
## Debugging your LDAP configuration
|
||||||
|
|
||||||
|
@@ -91,7 +91,7 @@ It just says "Sorry, try again." three times and exits.
|
|||||||
> log files, you need to create the file before syslogd will log
|
> log files, you need to create the file before syslogd will log
|
||||||
> to it (e.g.: touch /var/log/sudo).
|
> to it (e.g.: touch /var/log/sudo).
|
||||||
|
|
||||||
> Note: the facility (e.g. 'auth.debug') must be separated from
|
> The facility (e.g. 'auth.debug') must be separated from
|
||||||
> the destination (e.g. '/var/log/auth' or '@loghost') by tabs,
|
> the destination (e.g. '/var/log/auth' or '@loghost') by tabs,
|
||||||
> *not* spaces. This is a common error.
|
> *not* spaces. This is a common error.
|
||||||
|
|
||||||
@@ -104,8 +104,8 @@ It just says "Sorry, try again." three times and exits.
|
|||||||
> look ups was detected. For instance, for SVR4-style shadow
|
> look ups was detected. For instance, for SVR4-style shadow
|
||||||
> passwords, `HAVE_GETSPNAM` should be defined (you can search for
|
> passwords, `HAVE_GETSPNAM` should be defined (you can search for
|
||||||
> the string 'shadow passwords' in config.h with your editor).
|
> the string 'shadow passwords' in config.h with your editor).
|
||||||
> Note that there is no define for 4.4BSD-based shadow passwords
|
> There is no define needed for 4.4BSD-based shadow passwords
|
||||||
> since that just uses the standard getpw* routines.
|
> which just use the standard getpw* routines.
|
||||||
|
|
||||||
#### Can sudo use the ssh agent instead of asking for the user's password?
|
#### Can sudo use the ssh agent instead of asking for the user's password?
|
||||||
|
|
||||||
@@ -203,9 +203,8 @@ It just says "Sorry, try again." three times and exits.
|
|||||||
> config.cache to make re-running configure speedy. However,
|
> config.cache to make re-running configure speedy. However,
|
||||||
> if you are building sudo for a different platform the results
|
> if you are building sudo for a different platform the results
|
||||||
> in config.cache will be wrong so you need to remove the config.cache file.
|
> in config.cache will be wrong so you need to remove the config.cache file.
|
||||||
> You can do this via `rm config.cache` or `make realclean`.
|
> You can do this via `rm config.cache`, or `make realclean` to also
|
||||||
> Note that `make realclean` will also remove any object files
|
> remove any object files and configure temp files that are present.
|
||||||
> and configure temp files that are laying around as well.
|
|
||||||
|
|
||||||
#### When I run 'visudo' it says "sudoers file busy, try again later."
|
#### When I run 'visudo' it says "sudoers file busy, try again later."
|
||||||
|
|
||||||
|
@@ -130,9 +130,9 @@ Notes on upgrading from an older release
|
|||||||
|
|
||||||
cvtsudoers -f json -o output_file sudoers_file
|
cvtsudoers -f json -o output_file sudoers_file
|
||||||
|
|
||||||
Note that unlike "visudo -x", "cvtsudoers" reads from the
|
Unlike "visudo -x", "cvtsudoers" reads from the standard input
|
||||||
standard input by default. Also, the base DN may be specified
|
by default. Also, the base DN may be specified on the command
|
||||||
on the command line, if desired, using the -b option.
|
line, if desired, using the -b option.
|
||||||
|
|
||||||
* Upgrading from a version prior to 1.8.20:
|
* Upgrading from a version prior to 1.8.20:
|
||||||
|
|
||||||
@@ -429,9 +429,9 @@ Notes on upgrading from an older release
|
|||||||
|
|
||||||
to preserve the old value of MAIL.
|
to preserve the old value of MAIL.
|
||||||
|
|
||||||
NOTE: preserving HOME has security implications since many programs
|
Preserving HOME has security implications since many programs
|
||||||
use it when searching for configuration files. Adding HOME to env_keep
|
use it when searching for configuration files. Adding HOME to
|
||||||
may enable a user to run unrestricted commands via sudo.
|
env_keep may enable a user to run unrestricted commands via sudo.
|
||||||
|
|
||||||
The default syslog facility has changed from "local2" to "authpriv"
|
The default syslog facility has changed from "local2" to "authpriv"
|
||||||
(or "auth" if the operating system doesn't have "authpriv").
|
(or "auth" if the operating system doesn't have "authpriv").
|
||||||
@@ -501,9 +501,8 @@ Notes on upgrading from an older release
|
|||||||
when env_reset was set (which is now on by default). Starting
|
when env_reset was set (which is now on by default). Starting
|
||||||
with sudo 1.6.9, environment variables listed in env_check are
|
with sudo 1.6.9, environment variables listed in env_check are
|
||||||
also preserved in the env_reset case, provided that they do not
|
also preserved in the env_reset case, provided that they do not
|
||||||
contain a '/' or '%' character. Note that it is not necessary
|
contain a '/' or '%' character. It is not necessary to also
|
||||||
to also list a variable in env_keep--having it in env_check is
|
list a variable in env_keep--having it in env_check is sufficient.
|
||||||
sufficient.
|
|
||||||
|
|
||||||
The default lists of variables to be preserved and/or checked
|
The default lists of variables to be preserved and/or checked
|
||||||
are displayed when sudo is run by root with the -V flag.
|
are displayed when sudo is run by root with the -V flag.
|
||||||
|
@@ -66,8 +66,8 @@ the line, are ignored.
|
|||||||
Long lines can be continued with a backslash
|
Long lines can be continued with a backslash
|
||||||
(\(oq\e\(cq)
|
(\(oq\e\(cq)
|
||||||
as the last character on the line.
|
as the last character on the line.
|
||||||
Note that leading white space is removed from the beginning of lines
|
Leading white space is removed from the beginning of lines
|
||||||
even when the continuation character is used.
|
even when a continuation character is used.
|
||||||
.PP
|
.PP
|
||||||
Non-comment lines that don't begin with
|
Non-comment lines that don't begin with
|
||||||
\fRPlugin\fR,
|
\fRPlugin\fR,
|
||||||
|
@@ -63,8 +63,8 @@ the line, are ignored.
|
|||||||
Long lines can be continued with a backslash
|
Long lines can be continued with a backslash
|
||||||
.Pq Ql \e
|
.Pq Ql \e
|
||||||
as the last character on the line.
|
as the last character on the line.
|
||||||
Note that leading white space is removed from the beginning of lines
|
Leading white space is removed from the beginning of lines
|
||||||
even when the continuation character is used.
|
even when a continuation character is used.
|
||||||
.Pp
|
.Pp
|
||||||
Non-comment lines that don't begin with
|
Non-comment lines that don't begin with
|
||||||
.Li Plugin ,
|
.Li Plugin ,
|
||||||
|
@@ -242,8 +242,8 @@ This option has no effect if an askpass program is used.
|
|||||||
.TP 12n
|
.TP 12n
|
||||||
\fB\-b\fR, \fB\--background\fR
|
\fB\-b\fR, \fB\--background\fR
|
||||||
Run the given command in the background.
|
Run the given command in the background.
|
||||||
Note that it is not possible to use shell job control to manipulate
|
It is not possible to use shell job control to manipulate background
|
||||||
background processes started by
|
processes started by
|
||||||
\fBsudo\fR.
|
\fBsudo\fR.
|
||||||
Most interactive commands will fail to work properly in background
|
Most interactive commands will fail to work properly in background
|
||||||
mode.
|
mode.
|
||||||
@@ -375,7 +375,7 @@ not be edited unless that user is root (version 1.8.16 and higher).
|
|||||||
Users are never allowed to edit device special files.
|
Users are never allowed to edit device special files.
|
||||||
.sp
|
.sp
|
||||||
If the specified file does not exist, it will be created.
|
If the specified file does not exist, it will be created.
|
||||||
Note that unlike most commands run by
|
Unlike most commands run by
|
||||||
\fIsudo\fR,
|
\fIsudo\fR,
|
||||||
the editor is run with the invoking user's environment unmodified.
|
the editor is run with the invoking user's environment unmodified.
|
||||||
If the temporary file becomes empty after editing, the user will
|
If the temporary file becomes empty after editing, the user will
|
||||||
@@ -433,7 +433,7 @@ Display a short help message to the standard output and exit.
|
|||||||
Run the command on the specified
|
Run the command on the specified
|
||||||
\fIhost\fR
|
\fIhost\fR
|
||||||
if the security policy plugin supports remote commands.
|
if the security policy plugin supports remote commands.
|
||||||
Note that the
|
The
|
||||||
\fIsudoers\fR
|
\fIsudoers\fR
|
||||||
plugin does not currently support running remote commands.
|
plugin does not currently support running remote commands.
|
||||||
This may also be used in conjunction with the
|
This may also be used in conjunction with the
|
||||||
@@ -466,7 +466,7 @@ attempts to change to that user's home directory before running the
|
|||||||
shell.
|
shell.
|
||||||
The command is run with an environment similar to the one
|
The command is run with an environment similar to the one
|
||||||
a user would receive at log in.
|
a user would receive at log in.
|
||||||
Note that most shells behave differently when a command is specified
|
Most shells behave differently when a command is specified
|
||||||
as compared to an interactive session; consult the shell's manual
|
as compared to an interactive session; consult the shell's manual
|
||||||
for details.
|
for details.
|
||||||
The
|
The
|
||||||
@@ -643,7 +643,7 @@ with a backslash
|
|||||||
except for alphanumerics, underscores,
|
except for alphanumerics, underscores,
|
||||||
hyphens, and dollar signs.
|
hyphens, and dollar signs.
|
||||||
If no command is specified, an interactive shell is executed.
|
If no command is specified, an interactive shell is executed.
|
||||||
Note that most shells behave differently when a command is specified
|
Most shells behave differently when a command is specified
|
||||||
as compared to an interactive session; consult the shell's manual
|
as compared to an interactive session; consult the shell's manual
|
||||||
for details.
|
for details.
|
||||||
.if \n(SL \{\
|
.if \n(SL \{\
|
||||||
@@ -888,7 +888,7 @@ command has an associated timeout, or the
|
|||||||
or
|
or
|
||||||
\fIpam_setcred\fR
|
\fIpam_setcred\fR
|
||||||
options are enabled.
|
options are enabled.
|
||||||
Note that
|
Both
|
||||||
\fIpam_session\fR
|
\fIpam_session\fR
|
||||||
and
|
and
|
||||||
\fIpam_setcred\fR
|
\fIpam_setcred\fR
|
||||||
@@ -1066,9 +1066,9 @@ that reside in a directory that is writable by the user.
|
|||||||
If the user can modify or replace the command there is no way
|
If the user can modify or replace the command there is no way
|
||||||
to limit what additional commands they can run.
|
to limit what additional commands they can run.
|
||||||
.PP
|
.PP
|
||||||
Note that
|
By default,
|
||||||
\fBsudo\fR
|
\fBsudo\fR
|
||||||
will normally only log the command it explicitly runs.
|
will only log the command it explicitly runs.
|
||||||
If a user runs a command such as
|
If a user runs a command such as
|
||||||
\fRsudo su\fR
|
\fRsudo su\fR
|
||||||
or
|
or
|
||||||
@@ -1243,8 +1243,7 @@ is not set.
|
|||||||
\fBsudo\fR
|
\fBsudo\fR
|
||||||
front-end configuration
|
front-end configuration
|
||||||
.SH "EXAMPLES"
|
.SH "EXAMPLES"
|
||||||
Note: the following examples assume a properly configured security
|
The following examples assume a properly configured security policy.
|
||||||
policy.
|
|
||||||
.PP
|
.PP
|
||||||
To get a file listing of an unreadable directory:
|
To get a file listing of an unreadable directory:
|
||||||
.nf
|
.nf
|
||||||
@@ -1299,9 +1298,9 @@ $ sudo shutdown -r +15 "quick reboot"
|
|||||||
.fi
|
.fi
|
||||||
.PP
|
.PP
|
||||||
To make a usage listing of the directories in the /home partition.
|
To make a usage listing of the directories in the /home partition.
|
||||||
Note that this runs the commands in a sub-shell to make the
|
The commands are run in a sub-shell to allow the
|
||||||
\fRcd\fR
|
\fRcd\fR
|
||||||
and file redirection work.
|
command and file redirection to work.
|
||||||
.nf
|
.nf
|
||||||
.sp
|
.sp
|
||||||
.RS 4n
|
.RS 4n
|
||||||
|
@@ -238,8 +238,8 @@ Ring the bell as part of the password prompt when a terminal is present.
|
|||||||
This option has no effect if an askpass program is used.
|
This option has no effect if an askpass program is used.
|
||||||
.It Fl b , -background
|
.It Fl b , -background
|
||||||
Run the given command in the background.
|
Run the given command in the background.
|
||||||
Note that it is not possible to use shell job control to manipulate
|
It is not possible to use shell job control to manipulate background
|
||||||
background processes started by
|
processes started by
|
||||||
.Nm .
|
.Nm .
|
||||||
Most interactive commands will fail to work properly in background
|
Most interactive commands will fail to work properly in background
|
||||||
mode.
|
mode.
|
||||||
@@ -358,7 +358,7 @@ not be edited unless that user is root (version 1.8.16 and higher).
|
|||||||
Users are never allowed to edit device special files.
|
Users are never allowed to edit device special files.
|
||||||
.Pp
|
.Pp
|
||||||
If the specified file does not exist, it will be created.
|
If the specified file does not exist, it will be created.
|
||||||
Note that unlike most commands run by
|
Unlike most commands run by
|
||||||
.Em sudo ,
|
.Em sudo ,
|
||||||
the editor is run with the invoking user's environment unmodified.
|
the editor is run with the invoking user's environment unmodified.
|
||||||
If the temporary file becomes empty after editing, the user will
|
If the temporary file becomes empty after editing, the user will
|
||||||
@@ -411,7 +411,7 @@ Display a short help message to the standard output and exit.
|
|||||||
Run the command on the specified
|
Run the command on the specified
|
||||||
.Ar host
|
.Ar host
|
||||||
if the security policy plugin supports remote commands.
|
if the security policy plugin supports remote commands.
|
||||||
Note that the
|
The
|
||||||
.Em sudoers
|
.Em sudoers
|
||||||
plugin does not currently support running remote commands.
|
plugin does not currently support running remote commands.
|
||||||
This may also be used in conjunction with the
|
This may also be used in conjunction with the
|
||||||
@@ -443,7 +443,7 @@ attempts to change to that user's home directory before running the
|
|||||||
shell.
|
shell.
|
||||||
The command is run with an environment similar to the one
|
The command is run with an environment similar to the one
|
||||||
a user would receive at log in.
|
a user would receive at log in.
|
||||||
Note that most shells behave differently when a command is specified
|
Most shells behave differently when a command is specified
|
||||||
as compared to an interactive session; consult the shell's manual
|
as compared to an interactive session; consult the shell's manual
|
||||||
for details.
|
for details.
|
||||||
The
|
The
|
||||||
@@ -601,7 +601,7 @@ with a backslash
|
|||||||
except for alphanumerics, underscores,
|
except for alphanumerics, underscores,
|
||||||
hyphens, and dollar signs.
|
hyphens, and dollar signs.
|
||||||
If no command is specified, an interactive shell is executed.
|
If no command is specified, an interactive shell is executed.
|
||||||
Note that most shells behave differently when a command is specified
|
Most shells behave differently when a command is specified
|
||||||
as compared to an interactive session; consult the shell's manual
|
as compared to an interactive session; consult the shell's manual
|
||||||
for details.
|
for details.
|
||||||
.if \n(SL \{\
|
.if \n(SL \{\
|
||||||
@@ -829,7 +829,7 @@ command has an associated timeout, or the
|
|||||||
or
|
or
|
||||||
.Em pam_setcred
|
.Em pam_setcred
|
||||||
options are enabled.
|
options are enabled.
|
||||||
Note that
|
Both
|
||||||
.Em pam_session
|
.Em pam_session
|
||||||
and
|
and
|
||||||
.Em pam_setcred
|
.Em pam_setcred
|
||||||
@@ -1007,9 +1007,9 @@ that reside in a directory that is writable by the user.
|
|||||||
If the user can modify or replace the command there is no way
|
If the user can modify or replace the command there is no way
|
||||||
to limit what additional commands they can run.
|
to limit what additional commands they can run.
|
||||||
.Pp
|
.Pp
|
||||||
Note that
|
By default,
|
||||||
.Nm
|
.Nm
|
||||||
will normally only log the command it explicitly runs.
|
will only log the command it explicitly runs.
|
||||||
If a user runs a command such as
|
If a user runs a command such as
|
||||||
.Li sudo su
|
.Li sudo su
|
||||||
or
|
or
|
||||||
@@ -1168,8 +1168,7 @@ is not set.
|
|||||||
front-end configuration
|
front-end configuration
|
||||||
.El
|
.El
|
||||||
.Sh EXAMPLES
|
.Sh EXAMPLES
|
||||||
Note: the following examples assume a properly configured security
|
The following examples assume a properly configured security policy.
|
||||||
policy.
|
|
||||||
.Pp
|
.Pp
|
||||||
To get a file listing of an unreadable directory:
|
To get a file listing of an unreadable directory:
|
||||||
.Bd -literal -offset 4n
|
.Bd -literal -offset 4n
|
||||||
@@ -1206,9 +1205,9 @@ $ sudo shutdown -r +15 "quick reboot"
|
|||||||
.Ed
|
.Ed
|
||||||
.Pp
|
.Pp
|
||||||
To make a usage listing of the directories in the /home partition.
|
To make a usage listing of the directories in the /home partition.
|
||||||
Note that this runs the commands in a sub-shell to make the
|
The commands are run in a sub-shell to allow the
|
||||||
.Li cd
|
.Li cd
|
||||||
and file redirection work.
|
command and file redirection to work.
|
||||||
.Bd -literal -offset 4n
|
.Bd -literal -offset 4n
|
||||||
$ sudo sh -c "cd /home ; du -s * | sort -rn > USAGE"
|
$ sudo sh -c "cd /home ; du -s * | sort -rn > USAGE"
|
||||||
.Ed
|
.Ed
|
||||||
|
@@ -732,11 +732,9 @@ ttyname string the terminal the command was submitted from
|
|||||||
The server must accept other variables not listed above but may
|
The server must accept other variables not listed above but may
|
||||||
ignore them.
|
ignore them.
|
||||||
.SH "EXAMPLES"
|
.SH "EXAMPLES"
|
||||||
The Protocol Buffers description of the log server protocol is included
|
The Protocol Buffers description of the log server protocol, using
|
||||||
in full below.
|
|
||||||
Note that this uses the newer
|
|
||||||
\(lqproto3\(rq
|
\(lqproto3\(rq
|
||||||
syntax.
|
syntax, is included in full below.
|
||||||
.nf
|
.nf
|
||||||
.sp
|
.sp
|
||||||
.RS 0n
|
.RS 0n
|
||||||
|
@@ -652,11 +652,9 @@ entries are recognized, but not required:
|
|||||||
The server must accept other variables not listed above but may
|
The server must accept other variables not listed above but may
|
||||||
ignore them.
|
ignore them.
|
||||||
.Sh EXAMPLES
|
.Sh EXAMPLES
|
||||||
The Protocol Buffers description of the log server protocol is included
|
The Protocol Buffers description of the log server protocol, using
|
||||||
in full below.
|
|
||||||
Note that this uses the newer
|
|
||||||
.Dq proto3
|
.Dq proto3
|
||||||
syntax.
|
syntax, is included in full below.
|
||||||
.Bd -literal
|
.Bd -literal
|
||||||
syntax = "proto3";
|
syntax = "proto3";
|
||||||
|
|
||||||
|
@@ -46,7 +46,7 @@ are also ignored.
|
|||||||
Long lines can be continued with a backslash
|
Long lines can be continued with a backslash
|
||||||
(\(oq\e\(cq)
|
(\(oq\e\(cq)
|
||||||
as the last character on the line.
|
as the last character on the line.
|
||||||
Note that leading white space is removed from the beginning of lines
|
Leading white space is removed from the beginning of lines
|
||||||
even when the continuation character is used.
|
even when the continuation character is used.
|
||||||
.PP
|
.PP
|
||||||
The
|
The
|
||||||
@@ -137,7 +137,7 @@ Supported values are
|
|||||||
or a path name beginning with the
|
or a path name beginning with the
|
||||||
\(oq/\(cq
|
\(oq/\(cq
|
||||||
character.
|
character.
|
||||||
Note that a value of
|
A value of
|
||||||
\fIstderr\fR
|
\fIstderr\fR
|
||||||
is only effective when used in conjunction with the
|
is only effective when used in conjunction with the
|
||||||
\fB\-n\fR
|
\fB\-n\fR
|
||||||
@@ -512,9 +512,9 @@ iolog_file = path
|
|||||||
The path name, relative to
|
The path name, relative to
|
||||||
\fIiolog_dir\fR,
|
\fIiolog_dir\fR,
|
||||||
in which to store I/O logs.
|
in which to store I/O logs.
|
||||||
Note that
|
It is possible for
|
||||||
\fIiolog_file\fR
|
\fIiolog_file\fR
|
||||||
may contain directory components.
|
to contain directory components.
|
||||||
The default value is
|
The default value is
|
||||||
\fR%{seq}\fR.
|
\fR%{seq}\fR.
|
||||||
.sp
|
.sp
|
||||||
@@ -870,9 +870,8 @@ Sudo log server configuration file
|
|||||||
#tls_key = /etc/ssl/sudo/private/logsrvd_key.pem
|
#tls_key = /etc/ssl/sudo/private/logsrvd_key.pem
|
||||||
|
|
||||||
# TLS cipher list (see "CIPHER LIST FORMAT" in the openssl-ciphers manual).
|
# TLS cipher list (see "CIPHER LIST FORMAT" in the openssl-ciphers manual).
|
||||||
# NOTE that this setting is only effective if the negotiated protocol
|
# This setting is only effective if the negotiated protocol is TLS version
|
||||||
# is TLS version 1.2.
|
# 1.2. The default cipher list is HIGH:!aNULL.
|
||||||
# The default cipher list is HIGH:!aNULL.
|
|
||||||
#tls_ciphers_v12 = HIGH:!aNULL
|
#tls_ciphers_v12 = HIGH:!aNULL
|
||||||
|
|
||||||
# TLS cipher list if the negotiated protocol is TLS version 1.3.
|
# TLS cipher list if the negotiated protocol is TLS version 1.3.
|
||||||
@@ -942,9 +941,8 @@ Sudo log server configuration file
|
|||||||
#tls_key = /etc/ssl/sudo/private/logsrvd_key.pem
|
#tls_key = /etc/ssl/sudo/private/logsrvd_key.pem
|
||||||
|
|
||||||
# TLS cipher list (see "CIPHER LIST FORMAT" in the openssl-ciphers manual).
|
# TLS cipher list (see "CIPHER LIST FORMAT" in the openssl-ciphers manual).
|
||||||
# NOTE that this setting is only effective if the negotiated protocol
|
# this setting is only effective if the negotiated protocol is TLS version
|
||||||
# is TLS version 1.2.
|
# 1.2. The default is to use the value in the [server] section.
|
||||||
# The default is to use the value in the [server] section.
|
|
||||||
#tls_ciphers_v12 = HIGH:!aNULL
|
#tls_ciphers_v12 = HIGH:!aNULL
|
||||||
|
|
||||||
# TLS cipher list if the negotiated protocol is TLS version 1.3.
|
# TLS cipher list if the negotiated protocol is TLS version 1.3.
|
||||||
@@ -961,7 +959,7 @@ Sudo log server configuration file
|
|||||||
#iolog_dir = @iolog_dir@
|
#iolog_dir = @iolog_dir@
|
||||||
|
|
||||||
# The path name, relative to iolog_dir, in which to store I/O logs.
|
# The path name, relative to iolog_dir, in which to store I/O logs.
|
||||||
# Note that iolog_file may contain directory components.
|
# It is possible for iolog_file to contain directory components.
|
||||||
#iolog_file = %{seq}
|
#iolog_file = %{seq}
|
||||||
|
|
||||||
# If set, I/O logs will be compressed using zlib. Enabling compression can
|
# If set, I/O logs will be compressed using zlib. Enabling compression can
|
||||||
|
@@ -45,7 +45,7 @@ are also ignored.
|
|||||||
Long lines can be continued with a backslash
|
Long lines can be continued with a backslash
|
||||||
.Pq Ql \e
|
.Pq Ql \e
|
||||||
as the last character on the line.
|
as the last character on the line.
|
||||||
Note that leading white space is removed from the beginning of lines
|
Leading white space is removed from the beginning of lines
|
||||||
even when the continuation character is used.
|
even when the continuation character is used.
|
||||||
.Pp
|
.Pp
|
||||||
The
|
The
|
||||||
@@ -123,7 +123,7 @@ Supported values are
|
|||||||
or a path name beginning with the
|
or a path name beginning with the
|
||||||
.Ql /
|
.Ql /
|
||||||
character.
|
character.
|
||||||
Note that a value of
|
A value of
|
||||||
.Em stderr
|
.Em stderr
|
||||||
is only effective when used in conjunction with the
|
is only effective when used in conjunction with the
|
||||||
.Fl n
|
.Fl n
|
||||||
@@ -449,9 +449,9 @@ should be used.
|
|||||||
The path name, relative to
|
The path name, relative to
|
||||||
.Em iolog_dir ,
|
.Em iolog_dir ,
|
||||||
in which to store I/O logs.
|
in which to store I/O logs.
|
||||||
Note that
|
It is possible for
|
||||||
.Em iolog_file
|
.Em iolog_file
|
||||||
may contain directory components.
|
to contain directory components.
|
||||||
The default value is
|
The default value is
|
||||||
.Li %{seq} .
|
.Li %{seq} .
|
||||||
.Pp
|
.Pp
|
||||||
@@ -796,9 +796,8 @@ Sudo log server configuration file
|
|||||||
#tls_key = /etc/ssl/sudo/private/logsrvd_key.pem
|
#tls_key = /etc/ssl/sudo/private/logsrvd_key.pem
|
||||||
|
|
||||||
# TLS cipher list (see "CIPHER LIST FORMAT" in the openssl-ciphers manual).
|
# TLS cipher list (see "CIPHER LIST FORMAT" in the openssl-ciphers manual).
|
||||||
# NOTE that this setting is only effective if the negotiated protocol
|
# This setting is only effective if the negotiated protocol is TLS version
|
||||||
# is TLS version 1.2.
|
# 1.2. The default cipher list is HIGH:!aNULL.
|
||||||
# The default cipher list is HIGH:!aNULL.
|
|
||||||
#tls_ciphers_v12 = HIGH:!aNULL
|
#tls_ciphers_v12 = HIGH:!aNULL
|
||||||
|
|
||||||
# TLS cipher list if the negotiated protocol is TLS version 1.3.
|
# TLS cipher list if the negotiated protocol is TLS version 1.3.
|
||||||
@@ -868,9 +867,8 @@ Sudo log server configuration file
|
|||||||
#tls_key = /etc/ssl/sudo/private/logsrvd_key.pem
|
#tls_key = /etc/ssl/sudo/private/logsrvd_key.pem
|
||||||
|
|
||||||
# TLS cipher list (see "CIPHER LIST FORMAT" in the openssl-ciphers manual).
|
# TLS cipher list (see "CIPHER LIST FORMAT" in the openssl-ciphers manual).
|
||||||
# NOTE that this setting is only effective if the negotiated protocol
|
# this setting is only effective if the negotiated protocol is TLS version
|
||||||
# is TLS version 1.2.
|
# 1.2. The default is to use the value in the [server] section.
|
||||||
# The default is to use the value in the [server] section.
|
|
||||||
#tls_ciphers_v12 = HIGH:!aNULL
|
#tls_ciphers_v12 = HIGH:!aNULL
|
||||||
|
|
||||||
# TLS cipher list if the negotiated protocol is TLS version 1.3.
|
# TLS cipher list if the negotiated protocol is TLS version 1.3.
|
||||||
@@ -887,7 +885,7 @@ Sudo log server configuration file
|
|||||||
#iolog_dir = @iolog_dir@
|
#iolog_dir = @iolog_dir@
|
||||||
|
|
||||||
# The path name, relative to iolog_dir, in which to store I/O logs.
|
# The path name, relative to iolog_dir, in which to store I/O logs.
|
||||||
# Note that iolog_file may contain directory components.
|
# It is possible for iolog_file to contain directory components.
|
||||||
#iolog_file = %{seq}
|
#iolog_file = %{seq}
|
||||||
|
|
||||||
# If set, I/O logs will be compressed using zlib. Enabling compression can
|
# If set, I/O logs will be compressed using zlib. Enabling compression can
|
||||||
|
@@ -688,7 +688,7 @@ will be the
|
|||||||
\fRNULL\fR
|
\fRNULL\fR
|
||||||
pointer.
|
pointer.
|
||||||
.sp
|
.sp
|
||||||
NOTE: the
|
The
|
||||||
\fIplugin_options\fR
|
\fIplugin_options\fR
|
||||||
parameter is only available starting with
|
parameter is only available starting with
|
||||||
API version 1.2.
|
API version 1.2.
|
||||||
@@ -716,7 +716,7 @@ must remain valid until the plugin's
|
|||||||
\fBclose\fR()
|
\fBclose\fR()
|
||||||
function is called.
|
function is called.
|
||||||
.sp
|
.sp
|
||||||
NOTE: the
|
The
|
||||||
\fIerrstr\fR
|
\fIerrstr\fR
|
||||||
parameter is only available starting with
|
parameter is only available starting with
|
||||||
API version 1.15.
|
API version 1.15.
|
||||||
@@ -874,8 +874,7 @@ in the user's environment, such as
|
|||||||
\fREDITOR\fR,
|
\fREDITOR\fR,
|
||||||
and include it in
|
and include it in
|
||||||
\fIargv_out\fR
|
\fIargv_out\fR
|
||||||
(note that environment
|
(environment variables may include command line options).
|
||||||
variables may include command line options).
|
|
||||||
The files to be edited should be copied from
|
The files to be edited should be copied from
|
||||||
\fIargv\fR
|
\fIargv\fR
|
||||||
into
|
into
|
||||||
@@ -1518,7 +1517,7 @@ must remain valid until the plugin's
|
|||||||
\fBclose\fR()
|
\fBclose\fR()
|
||||||
function is called.
|
function is called.
|
||||||
.sp
|
.sp
|
||||||
NOTE: the
|
The
|
||||||
\fIerrstr\fR
|
\fIerrstr\fR
|
||||||
parameter is only available starting with
|
parameter is only available starting with
|
||||||
API version 1.15.
|
API version 1.15.
|
||||||
@@ -1606,7 +1605,7 @@ must remain valid until the plugin's
|
|||||||
\fBclose\fR()
|
\fBclose\fR()
|
||||||
function is called.
|
function is called.
|
||||||
.sp
|
.sp
|
||||||
NOTE: the
|
The
|
||||||
\fIerrstr\fR
|
\fIerrstr\fR
|
||||||
parameter is only available starting with
|
parameter is only available starting with
|
||||||
API version 1.15.
|
API version 1.15.
|
||||||
@@ -1676,7 +1675,7 @@ must remain valid until the plugin's
|
|||||||
\fBclose\fR()
|
\fBclose\fR()
|
||||||
function is called.
|
function is called.
|
||||||
.sp
|
.sp
|
||||||
NOTE: the
|
The
|
||||||
\fIerrstr\fR
|
\fIerrstr\fR
|
||||||
parameter is only available starting with
|
parameter is only available starting with
|
||||||
API version 1.15.
|
API version 1.15.
|
||||||
@@ -1779,7 +1778,7 @@ pointer stored in
|
|||||||
The expected use case is to merge the contents of the PAM environment
|
The expected use case is to merge the contents of the PAM environment
|
||||||
(if any) with the contents of
|
(if any) with the contents of
|
||||||
\fIuser_env_out\fR.
|
\fIuser_env_out\fR.
|
||||||
NOTE: the
|
The
|
||||||
\fIuser_env_out\fR
|
\fIuser_env_out\fR
|
||||||
parameter is only available
|
parameter is only available
|
||||||
starting with API version 1.2.
|
starting with API version 1.2.
|
||||||
@@ -1843,7 +1842,7 @@ See the
|
|||||||
section below for more information
|
section below for more information
|
||||||
about hooks.
|
about hooks.
|
||||||
.sp
|
.sp
|
||||||
NOTE: the
|
The
|
||||||
\fBregister_hooks\fR()
|
\fBregister_hooks\fR()
|
||||||
function is only available starting
|
function is only available starting
|
||||||
with API version 1.2.
|
with API version 1.2.
|
||||||
@@ -1896,7 +1895,7 @@ See the
|
|||||||
section below for more information
|
section below for more information
|
||||||
about hooks.
|
about hooks.
|
||||||
.sp
|
.sp
|
||||||
NOTE: the
|
The
|
||||||
\fBderegister_hooks\fR()
|
\fBderegister_hooks\fR()
|
||||||
function is only available starting
|
function is only available starting
|
||||||
with API version 1.2.
|
with API version 1.2.
|
||||||
@@ -1934,7 +1933,7 @@ See the
|
|||||||
section below for more information
|
section below for more information
|
||||||
about events.
|
about events.
|
||||||
.sp
|
.sp
|
||||||
NOTE: the
|
The
|
||||||
\fBevent_alloc\fR()
|
\fBevent_alloc\fR()
|
||||||
function is only available starting
|
function is only available starting
|
||||||
with API version 1.15.
|
with API version 1.15.
|
||||||
@@ -1961,7 +1960,7 @@ must remain valid until the plugin's
|
|||||||
\fBclose\fR()
|
\fBclose\fR()
|
||||||
function is called.
|
function is called.
|
||||||
.sp
|
.sp
|
||||||
NOTE: the
|
The
|
||||||
\fIerrstr\fR
|
\fIerrstr\fR
|
||||||
parameter is only available starting with
|
parameter is only available starting with
|
||||||
API version 1.15.
|
API version 1.15.
|
||||||
@@ -2043,7 +2042,7 @@ will open a pipe to capture
|
|||||||
the I/O for logging before passing it on.
|
the I/O for logging before passing it on.
|
||||||
.PP
|
.PP
|
||||||
The log_ttyin function receives the raw user input from the terminal
|
The log_ttyin function receives the raw user input from the terminal
|
||||||
device (note that this will include input even when echo is disabled,
|
device (this will include input even when echo is disabled,
|
||||||
such as when a password is read).
|
such as when a password is read).
|
||||||
The log_ttyout function receives output from the pseudo-terminal that is
|
The log_ttyout function receives output from the pseudo-terminal that is
|
||||||
suitable for replaying the user's session at a later time.
|
suitable for replaying the user's session at a later time.
|
||||||
@@ -2307,7 +2306,7 @@ will be the
|
|||||||
\fRNULL\fR
|
\fRNULL\fR
|
||||||
pointer.
|
pointer.
|
||||||
.sp
|
.sp
|
||||||
NOTE: the
|
The
|
||||||
\fIplugin_options\fR
|
\fIplugin_options\fR
|
||||||
parameter is only available starting with
|
parameter is only available starting with
|
||||||
API version 1.2.
|
API version 1.2.
|
||||||
@@ -2335,7 +2334,7 @@ must remain valid until the plugin's
|
|||||||
\fBclose\fR()
|
\fBclose\fR()
|
||||||
function is called.
|
function is called.
|
||||||
.sp
|
.sp
|
||||||
NOTE: the
|
The
|
||||||
\fIerrstr\fR
|
\fIerrstr\fR
|
||||||
parameter is only available starting with
|
parameter is only available starting with
|
||||||
API version 1.15.
|
API version 1.15.
|
||||||
@@ -2465,7 +2464,7 @@ must remain valid until the plugin's
|
|||||||
\fBclose\fR()
|
\fBclose\fR()
|
||||||
function is called.
|
function is called.
|
||||||
.sp
|
.sp
|
||||||
NOTE: the
|
The
|
||||||
\fIerrstr\fR
|
\fIerrstr\fR
|
||||||
parameter is only available starting with
|
parameter is only available starting with
|
||||||
API version 1.15.
|
API version 1.15.
|
||||||
@@ -2524,7 +2523,7 @@ must remain valid until the plugin's
|
|||||||
\fBclose\fR()
|
\fBclose\fR()
|
||||||
function is called.
|
function is called.
|
||||||
.sp
|
.sp
|
||||||
NOTE: the
|
The
|
||||||
\fIerrstr\fR
|
\fIerrstr\fR
|
||||||
parameter is only available starting with
|
parameter is only available starting with
|
||||||
API version 1.15.
|
API version 1.15.
|
||||||
@@ -2586,7 +2585,7 @@ must remain valid until the plugin's
|
|||||||
\fBclose\fR()
|
\fBclose\fR()
|
||||||
function is called.
|
function is called.
|
||||||
.sp
|
.sp
|
||||||
NOTE: the
|
The
|
||||||
\fIerrstr\fR
|
\fIerrstr\fR
|
||||||
parameter is only available starting with
|
parameter is only available starting with
|
||||||
API version 1.15.
|
API version 1.15.
|
||||||
@@ -2648,7 +2647,7 @@ must remain valid until the plugin's
|
|||||||
\fBclose\fR()
|
\fBclose\fR()
|
||||||
function is called.
|
function is called.
|
||||||
.sp
|
.sp
|
||||||
NOTE: the
|
The
|
||||||
\fIerrstr\fR
|
\fIerrstr\fR
|
||||||
parameter is only available starting with
|
parameter is only available starting with
|
||||||
API version 1.15.
|
API version 1.15.
|
||||||
@@ -2710,7 +2709,7 @@ must remain valid until the plugin's
|
|||||||
\fBclose\fR()
|
\fBclose\fR()
|
||||||
function is called.
|
function is called.
|
||||||
.sp
|
.sp
|
||||||
NOTE: the
|
The
|
||||||
\fIerrstr\fR
|
\fIerrstr\fR
|
||||||
parameter is only available starting with
|
parameter is only available starting with
|
||||||
API version 1.15.
|
API version 1.15.
|
||||||
@@ -2781,7 +2780,7 @@ must remain valid until the plugin's
|
|||||||
\fBclose\fR()
|
\fBclose\fR()
|
||||||
function is called.
|
function is called.
|
||||||
.sp
|
.sp
|
||||||
NOTE: the
|
The
|
||||||
\fIerrstr\fR
|
\fIerrstr\fR
|
||||||
parameter is only available starting with
|
parameter is only available starting with
|
||||||
API version 1.15.
|
API version 1.15.
|
||||||
@@ -2837,7 +2836,7 @@ must remain valid until the plugin's
|
|||||||
\fBclose\fR()
|
\fBclose\fR()
|
||||||
function is called.
|
function is called.
|
||||||
.sp
|
.sp
|
||||||
NOTE: the
|
The
|
||||||
\fIerrstr\fR
|
\fIerrstr\fR
|
||||||
parameter is only available starting with
|
parameter is only available starting with
|
||||||
API version 1.15.
|
API version 1.15.
|
||||||
@@ -2875,7 +2874,7 @@ See the
|
|||||||
section below for more information
|
section below for more information
|
||||||
about events.
|
about events.
|
||||||
.sp
|
.sp
|
||||||
NOTE: the
|
The
|
||||||
\fBevent_alloc\fR()
|
\fBevent_alloc\fR()
|
||||||
function is only available starting
|
function is only available starting
|
||||||
with API version 1.15.
|
with API version 1.15.
|
||||||
@@ -3565,7 +3564,7 @@ See the
|
|||||||
section below for more information
|
section below for more information
|
||||||
about events.
|
about events.
|
||||||
.sp
|
.sp
|
||||||
NOTE: the
|
The
|
||||||
\fBevent_alloc\fR()
|
\fBevent_alloc\fR()
|
||||||
function is only available starting
|
function is only available starting
|
||||||
with API version 1.17.
|
with API version 1.17.
|
||||||
@@ -4222,8 +4221,8 @@ unchanged.
|
|||||||
.RE
|
.RE
|
||||||
.PD
|
.PD
|
||||||
.PP
|
.PP
|
||||||
Note that it is very easy to create an infinite loop when hooking
|
Care must be taken when hooking C library functions,
|
||||||
C library functions.
|
it is very easy to create an infinite loop.
|
||||||
For example, a
|
For example, a
|
||||||
getenv(3)
|
getenv(3)
|
||||||
hook that calls the
|
hook that calls the
|
||||||
@@ -4600,7 +4599,7 @@ that the remote host will accept and run a program
|
|||||||
on the remote host that would setup the execution environment
|
on the remote host that would setup the execution environment
|
||||||
accordingly.
|
accordingly.
|
||||||
.PP
|
.PP
|
||||||
Note that remote
|
Remote
|
||||||
\fBsudoedit\fR
|
\fBsudoedit\fR
|
||||||
functionality must be handled by the policy plugin, not
|
functionality must be handled by the policy plugin, not
|
||||||
\fBsudo\fR
|
\fBsudo\fR
|
||||||
@@ -4724,7 +4723,7 @@ will return a value of \-1.
|
|||||||
The intended use is to allow the plugin to release resources, such as locks,
|
The intended use is to allow the plugin to release resources, such as locks,
|
||||||
that should not be held indefinitely while suspended and then reacquire them
|
that should not be held indefinitely while suspended and then reacquire them
|
||||||
when the process is resumed.
|
when the process is resumed.
|
||||||
Note that the functions are not actually invoked from within a signal handler.
|
The functions are not actually invoked from within a signal handler.
|
||||||
.PP
|
.PP
|
||||||
The
|
The
|
||||||
\fImsg_type\fR
|
\fImsg_type\fR
|
||||||
|
@@ -609,7 +609,7 @@ will be the
|
|||||||
.Dv NULL
|
.Dv NULL
|
||||||
pointer.
|
pointer.
|
||||||
.Pp
|
.Pp
|
||||||
NOTE: the
|
The
|
||||||
.Em plugin_options
|
.Em plugin_options
|
||||||
parameter is only available starting with
|
parameter is only available starting with
|
||||||
API version 1.2.
|
API version 1.2.
|
||||||
@@ -636,7 +636,7 @@ must remain valid until the plugin's
|
|||||||
.Fn close
|
.Fn close
|
||||||
function is called.
|
function is called.
|
||||||
.Pp
|
.Pp
|
||||||
NOTE: the
|
The
|
||||||
.Fa errstr
|
.Fa errstr
|
||||||
parameter is only available starting with
|
parameter is only available starting with
|
||||||
API version 1.15.
|
API version 1.15.
|
||||||
@@ -775,8 +775,7 @@ in the user's environment, such as
|
|||||||
.Li EDITOR ,
|
.Li EDITOR ,
|
||||||
and include it in
|
and include it in
|
||||||
.Em argv_out
|
.Em argv_out
|
||||||
(note that environment
|
(environment variables may include command line options).
|
||||||
variables may include command line options).
|
|
||||||
The files to be edited should be copied from
|
The files to be edited should be copied from
|
||||||
.Em argv
|
.Em argv
|
||||||
into
|
into
|
||||||
@@ -1359,7 +1358,7 @@ must remain valid until the plugin's
|
|||||||
.Fn close
|
.Fn close
|
||||||
function is called.
|
function is called.
|
||||||
.Pp
|
.Pp
|
||||||
NOTE: the
|
The
|
||||||
.Fa errstr
|
.Fa errstr
|
||||||
parameter is only available starting with
|
parameter is only available starting with
|
||||||
API version 1.15.
|
API version 1.15.
|
||||||
@@ -1436,7 +1435,7 @@ must remain valid until the plugin's
|
|||||||
.Fn close
|
.Fn close
|
||||||
function is called.
|
function is called.
|
||||||
.Pp
|
.Pp
|
||||||
NOTE: the
|
The
|
||||||
.Fa errstr
|
.Fa errstr
|
||||||
parameter is only available starting with
|
parameter is only available starting with
|
||||||
API version 1.15.
|
API version 1.15.
|
||||||
@@ -1499,7 +1498,7 @@ must remain valid until the plugin's
|
|||||||
.Fn close
|
.Fn close
|
||||||
function is called.
|
function is called.
|
||||||
.Pp
|
.Pp
|
||||||
NOTE: the
|
The
|
||||||
.Fa errstr
|
.Fa errstr
|
||||||
parameter is only available starting with
|
parameter is only available starting with
|
||||||
API version 1.15.
|
API version 1.15.
|
||||||
@@ -1590,7 +1589,7 @@ pointer stored in
|
|||||||
The expected use case is to merge the contents of the PAM environment
|
The expected use case is to merge the contents of the PAM environment
|
||||||
(if any) with the contents of
|
(if any) with the contents of
|
||||||
.Em user_env_out .
|
.Em user_env_out .
|
||||||
NOTE: the
|
The
|
||||||
.Em user_env_out
|
.Em user_env_out
|
||||||
parameter is only available
|
parameter is only available
|
||||||
starting with API version 1.2.
|
starting with API version 1.2.
|
||||||
@@ -1649,7 +1648,7 @@ See the
|
|||||||
section below for more information
|
section below for more information
|
||||||
about hooks.
|
about hooks.
|
||||||
.Pp
|
.Pp
|
||||||
NOTE: the
|
The
|
||||||
.Fn register_hooks
|
.Fn register_hooks
|
||||||
function is only available starting
|
function is only available starting
|
||||||
with API version 1.2.
|
with API version 1.2.
|
||||||
@@ -1697,7 +1696,7 @@ See the
|
|||||||
section below for more information
|
section below for more information
|
||||||
about hooks.
|
about hooks.
|
||||||
.Pp
|
.Pp
|
||||||
NOTE: the
|
The
|
||||||
.Fn deregister_hooks
|
.Fn deregister_hooks
|
||||||
function is only available starting
|
function is only available starting
|
||||||
with API version 1.2.
|
with API version 1.2.
|
||||||
@@ -1730,7 +1729,7 @@ See the
|
|||||||
section below for more information
|
section below for more information
|
||||||
about events.
|
about events.
|
||||||
.Pp
|
.Pp
|
||||||
NOTE: the
|
The
|
||||||
.Fn event_alloc
|
.Fn event_alloc
|
||||||
function is only available starting
|
function is only available starting
|
||||||
with API version 1.15.
|
with API version 1.15.
|
||||||
@@ -1755,7 +1754,7 @@ must remain valid until the plugin's
|
|||||||
.Fn close
|
.Fn close
|
||||||
function is called.
|
function is called.
|
||||||
.Pp
|
.Pp
|
||||||
NOTE: the
|
The
|
||||||
.Fa errstr
|
.Fa errstr
|
||||||
parameter is only available starting with
|
parameter is only available starting with
|
||||||
API version 1.15.
|
API version 1.15.
|
||||||
@@ -1833,7 +1832,7 @@ will open a pipe to capture
|
|||||||
the I/O for logging before passing it on.
|
the I/O for logging before passing it on.
|
||||||
.Pp
|
.Pp
|
||||||
The log_ttyin function receives the raw user input from the terminal
|
The log_ttyin function receives the raw user input from the terminal
|
||||||
device (note that this will include input even when echo is disabled,
|
device (this will include input even when echo is disabled,
|
||||||
such as when a password is read).
|
such as when a password is read).
|
||||||
The log_ttyout function receives output from the pseudo-terminal that is
|
The log_ttyout function receives output from the pseudo-terminal that is
|
||||||
suitable for replaying the user's session at a later time.
|
suitable for replaying the user's session at a later time.
|
||||||
@@ -2083,7 +2082,7 @@ will be the
|
|||||||
.Dv NULL
|
.Dv NULL
|
||||||
pointer.
|
pointer.
|
||||||
.Pp
|
.Pp
|
||||||
NOTE: the
|
The
|
||||||
.Em plugin_options
|
.Em plugin_options
|
||||||
parameter is only available starting with
|
parameter is only available starting with
|
||||||
API version 1.2.
|
API version 1.2.
|
||||||
@@ -2110,7 +2109,7 @@ must remain valid until the plugin's
|
|||||||
.Fn close
|
.Fn close
|
||||||
function is called.
|
function is called.
|
||||||
.Pp
|
.Pp
|
||||||
NOTE: the
|
The
|
||||||
.Fa errstr
|
.Fa errstr
|
||||||
parameter is only available starting with
|
parameter is only available starting with
|
||||||
API version 1.15.
|
API version 1.15.
|
||||||
@@ -2216,7 +2215,7 @@ must remain valid until the plugin's
|
|||||||
.Fn close
|
.Fn close
|
||||||
function is called.
|
function is called.
|
||||||
.Pp
|
.Pp
|
||||||
NOTE: the
|
The
|
||||||
.Fa errstr
|
.Fa errstr
|
||||||
parameter is only available starting with
|
parameter is only available starting with
|
||||||
API version 1.15.
|
API version 1.15.
|
||||||
@@ -2266,7 +2265,7 @@ must remain valid until the plugin's
|
|||||||
.Fn close
|
.Fn close
|
||||||
function is called.
|
function is called.
|
||||||
.Pp
|
.Pp
|
||||||
NOTE: the
|
The
|
||||||
.Fa errstr
|
.Fa errstr
|
||||||
parameter is only available starting with
|
parameter is only available starting with
|
||||||
API version 1.15.
|
API version 1.15.
|
||||||
@@ -2319,7 +2318,7 @@ must remain valid until the plugin's
|
|||||||
.Fn close
|
.Fn close
|
||||||
function is called.
|
function is called.
|
||||||
.Pp
|
.Pp
|
||||||
NOTE: the
|
The
|
||||||
.Fa errstr
|
.Fa errstr
|
||||||
parameter is only available starting with
|
parameter is only available starting with
|
||||||
API version 1.15.
|
API version 1.15.
|
||||||
@@ -2372,7 +2371,7 @@ must remain valid until the plugin's
|
|||||||
.Fn close
|
.Fn close
|
||||||
function is called.
|
function is called.
|
||||||
.Pp
|
.Pp
|
||||||
NOTE: the
|
The
|
||||||
.Fa errstr
|
.Fa errstr
|
||||||
parameter is only available starting with
|
parameter is only available starting with
|
||||||
API version 1.15.
|
API version 1.15.
|
||||||
@@ -2425,7 +2424,7 @@ must remain valid until the plugin's
|
|||||||
.Fn close
|
.Fn close
|
||||||
function is called.
|
function is called.
|
||||||
.Pp
|
.Pp
|
||||||
NOTE: the
|
The
|
||||||
.Fa errstr
|
.Fa errstr
|
||||||
parameter is only available starting with
|
parameter is only available starting with
|
||||||
API version 1.15.
|
API version 1.15.
|
||||||
@@ -2484,7 +2483,7 @@ must remain valid until the plugin's
|
|||||||
.Fn close
|
.Fn close
|
||||||
function is called.
|
function is called.
|
||||||
.Pp
|
.Pp
|
||||||
NOTE: the
|
The
|
||||||
.Fa errstr
|
.Fa errstr
|
||||||
parameter is only available starting with
|
parameter is only available starting with
|
||||||
API version 1.15.
|
API version 1.15.
|
||||||
@@ -2531,7 +2530,7 @@ must remain valid until the plugin's
|
|||||||
.Fn close
|
.Fn close
|
||||||
function is called.
|
function is called.
|
||||||
.Pp
|
.Pp
|
||||||
NOTE: the
|
The
|
||||||
.Fa errstr
|
.Fa errstr
|
||||||
parameter is only available starting with
|
parameter is only available starting with
|
||||||
API version 1.15.
|
API version 1.15.
|
||||||
@@ -2565,7 +2564,7 @@ See the
|
|||||||
section below for more information
|
section below for more information
|
||||||
about events.
|
about events.
|
||||||
.Pp
|
.Pp
|
||||||
NOTE: the
|
The
|
||||||
.Fn event_alloc
|
.Fn event_alloc
|
||||||
function is only available starting
|
function is only available starting
|
||||||
with API version 1.15.
|
with API version 1.15.
|
||||||
@@ -3181,7 +3180,7 @@ See the
|
|||||||
section below for more information
|
section below for more information
|
||||||
about events.
|
about events.
|
||||||
.Pp
|
.Pp
|
||||||
NOTE: the
|
The
|
||||||
.Fn event_alloc
|
.Fn event_alloc
|
||||||
function is only available starting
|
function is only available starting
|
||||||
with API version 1.17.
|
with API version 1.17.
|
||||||
@@ -3749,8 +3748,8 @@ unchanged.
|
|||||||
.El
|
.El
|
||||||
.El
|
.El
|
||||||
.Pp
|
.Pp
|
||||||
Note that it is very easy to create an infinite loop when hooking
|
Care must be taken when hooking C library functions,
|
||||||
C library functions.
|
it is very easy to create an infinite loop.
|
||||||
For example, a
|
For example, a
|
||||||
.Xr getenv 3
|
.Xr getenv 3
|
||||||
hook that calls the
|
hook that calls the
|
||||||
@@ -4060,7 +4059,7 @@ that the remote host will accept and run a program
|
|||||||
on the remote host that would setup the execution environment
|
on the remote host that would setup the execution environment
|
||||||
accordingly.
|
accordingly.
|
||||||
.Pp
|
.Pp
|
||||||
Note that remote
|
Remote
|
||||||
.Nm sudoedit
|
.Nm sudoedit
|
||||||
functionality must be handled by the policy plugin, not
|
functionality must be handled by the policy plugin, not
|
||||||
.Nm sudo
|
.Nm sudo
|
||||||
@@ -4178,7 +4177,7 @@ will return a value of \-1.
|
|||||||
The intended use is to allow the plugin to release resources, such as locks,
|
The intended use is to allow the plugin to release resources, such as locks,
|
||||||
that should not be held indefinitely while suspended and then reacquire them
|
that should not be held indefinitely while suspended and then reacquire them
|
||||||
when the process is resumed.
|
when the process is resumed.
|
||||||
Note that the functions are not actually invoked from within a signal handler.
|
The functions are not actually invoked from within a signal handler.
|
||||||
.Pp
|
.Pp
|
||||||
The
|
The
|
||||||
.Em msg_type
|
.Em msg_type
|
||||||
|
@@ -1724,7 +1724,7 @@ logger will get forwarded to sudo log system, as it would call sudo.debug.
|
|||||||
.PP
|
.PP
|
||||||
The log handler of sudo will map each Python log level of a message to
|
The log handler of sudo will map each Python log level of a message to
|
||||||
the appropriate sudo debug level.
|
the appropriate sudo debug level.
|
||||||
Note however, that sudo debug system will only get the messages not filtered
|
The sudo debug system will only receive messages that are not filtered
|
||||||
out by the Python loggers.
|
out by the Python loggers.
|
||||||
For example, the log level of the python logger will be an additional filter
|
For example, the log level of the python logger will be an additional filter
|
||||||
for the log messages, and is usually very different from what level is set in sudo.conf
|
for the log messages, and is usually very different from what level is set in sudo.conf
|
||||||
@@ -1790,7 +1790,7 @@ The function arguments are as follows:
|
|||||||
.TP 6n
|
.TP 6n
|
||||||
\fIoptions_dict\fR
|
\fIoptions_dict\fR
|
||||||
A dictionary where both the key and the value are strings.
|
A dictionary where both the key and the value are strings.
|
||||||
Note that the key should not contain an equal sign
|
The key should not contain an equal sign
|
||||||
(\(oq\&=\(cq),
|
(\(oq\&=\(cq),
|
||||||
otherwise the resulting string will have a different meaning.
|
otherwise the resulting string will have a different meaning.
|
||||||
However, this is not currently enforced.
|
However, this is not currently enforced.
|
||||||
|
@@ -1387,7 +1387,7 @@ logger will get forwarded to sudo log system, as it would call sudo.debug.
|
|||||||
.Pp
|
.Pp
|
||||||
The log handler of sudo will map each Python log level of a message to
|
The log handler of sudo will map each Python log level of a message to
|
||||||
the appropriate sudo debug level.
|
the appropriate sudo debug level.
|
||||||
Note however, that sudo debug system will only get the messages not filtered
|
The sudo debug system will only receive messages that are not filtered
|
||||||
out by the Python loggers.
|
out by the Python loggers.
|
||||||
For example, the log level of the python logger will be an additional filter
|
For example, the log level of the python logger will be an additional filter
|
||||||
for the log messages, and is usually very different from what level is set in sudo.conf
|
for the log messages, and is usually very different from what level is set in sudo.conf
|
||||||
@@ -1443,7 +1443,7 @@ The function arguments are as follows:
|
|||||||
.Bl -tag -width 4n
|
.Bl -tag -width 4n
|
||||||
.It Fa options_dict
|
.It Fa options_dict
|
||||||
A dictionary where both the key and the value are strings.
|
A dictionary where both the key and the value are strings.
|
||||||
Note that the key should not contain an equal sign
|
The key should not contain an equal sign
|
||||||
.Pq Sq \&= ,
|
.Pq Sq \&= ,
|
||||||
otherwise the resulting string will have a different meaning.
|
otherwise the resulting string will have a different meaning.
|
||||||
However, this is not currently enforced.
|
However, this is not currently enforced.
|
||||||
|
@@ -168,9 +168,9 @@ with the
|
|||||||
option (or as
|
option (or as
|
||||||
\fBsudoedit\fR).
|
\fBsudoedit\fR).
|
||||||
It may take command line arguments just as a normal command does.
|
It may take command line arguments just as a normal command does.
|
||||||
Note that
|
Unlike other commands,
|
||||||
\(lq\fRsudoedit\fR\(rq
|
\(lq\fRsudoedit\fR\(rq
|
||||||
is a command built into
|
is a built into
|
||||||
\fBsudo\fR
|
\fBsudo\fR
|
||||||
itself and must be specified in without a leading path.
|
itself and must be specified in without a leading path.
|
||||||
.sp
|
.sp
|
||||||
@@ -288,7 +288,7 @@ will be valid.
|
|||||||
If multiple
|
If multiple
|
||||||
\fRsudoNotBefore\fR
|
\fRsudoNotBefore\fR
|
||||||
entries are present, the earliest is used.
|
entries are present, the earliest is used.
|
||||||
Note that timestamps must be in Coordinated Universal Time (UTC),
|
Timestamps must be in Coordinated Universal Time (UTC),
|
||||||
not the local timezone.
|
not the local timezone.
|
||||||
The minute and seconds portions are optional, but some LDAP servers
|
The minute and seconds portions are optional, but some LDAP servers
|
||||||
require that they be present (contrary to the RFC).
|
require that they be present (contrary to the RFC).
|
||||||
@@ -311,7 +311,7 @@ will no longer be valid.
|
|||||||
If multiple
|
If multiple
|
||||||
\fRsudoNotAfter\fR
|
\fRsudoNotAfter\fR
|
||||||
entries are present, the last one is used.
|
entries are present, the last one is used.
|
||||||
Note that timestamps must be in Coordinated Universal Time (UTC),
|
Timestamps must be in Coordinated Universal Time (UTC),
|
||||||
not the local timezone.
|
not the local timezone.
|
||||||
The minute and seconds portions are optional, but some LDAP servers
|
The minute and seconds portions are optional, but some LDAP servers
|
||||||
require that they be present (contrary to the RFC).
|
require that they be present (contrary to the RFC).
|
||||||
@@ -671,10 +671,10 @@ file for LDAP-specific configuration.
|
|||||||
Typically, this file is shared between different LDAP-aware clients.
|
Typically, this file is shared between different LDAP-aware clients.
|
||||||
As such, most of the settings are not
|
As such, most of the settings are not
|
||||||
\fBsudo\fR-specific.
|
\fBsudo\fR-specific.
|
||||||
Note that
|
The
|
||||||
\fBsudo\fR
|
|
||||||
parses
|
|
||||||
\fI@ldap_conf@\fR
|
\fI@ldap_conf@\fR
|
||||||
|
file is parsed by
|
||||||
|
\fBsudo\fR
|
||||||
itself and may support options that differ from those described in the
|
itself and may support options that differ from those described in the
|
||||||
system's
|
system's
|
||||||
ldap.conf(@mansectform@)
|
ldap.conf(@mansectform@)
|
||||||
@@ -686,8 +686,7 @@ may be overridden via the
|
|||||||
plugin argument in
|
plugin argument in
|
||||||
sudo.conf(@mansectform@).
|
sudo.conf(@mansectform@).
|
||||||
.PP
|
.PP
|
||||||
Also note that on systems using the OpenLDAP libraries, default
|
On systems using the OpenLDAP libraries, default values specified in
|
||||||
values specified in
|
|
||||||
\fI/etc/openldap/ldap.conf\fR
|
\fI/etc/openldap/ldap.conf\fR
|
||||||
or the user's
|
or the user's
|
||||||
\fI.ldaprc\fR
|
\fI.ldaprc\fR
|
||||||
@@ -1089,7 +1088,7 @@ will be unable to connect to it.
|
|||||||
If
|
If
|
||||||
\fBTLS_CHECKPEER\fR
|
\fBTLS_CHECKPEER\fR
|
||||||
is disabled, no check is made.
|
is disabled, no check is made.
|
||||||
Note that disabling the check creates an opportunity for man-in-the-middle
|
Disabling this check creates an opportunity for man-in-the-middle
|
||||||
attacks since the server's identity will not be authenticated.
|
attacks since the server's identity will not be authenticated.
|
||||||
If possible, the CA's certificate should be installed locally so it can
|
If possible, the CA's certificate should be installed locally so it can
|
||||||
be verified.
|
be verified.
|
||||||
@@ -1300,7 +1299,7 @@ search order.
|
|||||||
Sudo looks for a line beginning with
|
Sudo looks for a line beginning with
|
||||||
\fRsudoers\fR:
|
\fRsudoers\fR:
|
||||||
and uses this to determine the search order.
|
and uses this to determine the search order.
|
||||||
Note that by default,
|
By default,
|
||||||
\fBsudo\fR
|
\fBsudo\fR
|
||||||
does not stop searching after the first match and later matches take
|
does not stop searching after the first match and later matches take
|
||||||
precedence over earlier ones (unless
|
precedence over earlier ones (unless
|
||||||
@@ -1375,10 +1374,10 @@ sudoers: files
|
|||||||
.RE
|
.RE
|
||||||
.fi
|
.fi
|
||||||
.PP
|
.PP
|
||||||
Note that
|
The
|
||||||
\fI@nsswitch_conf@\fR
|
\fI@nsswitch_conf@\fR
|
||||||
is supported even when the underlying operating system does not use
|
file is supported even when the underlying operating system does not
|
||||||
an nsswitch.conf file, except on AIX (see below).
|
support it, except on AIX (see below).
|
||||||
.SS "Configuring netsvc.conf"
|
.SS "Configuring netsvc.conf"
|
||||||
On AIX systems, the
|
On AIX systems, the
|
||||||
\fI@netsvc_conf@\fR
|
\fI@netsvc_conf@\fR
|
||||||
@@ -1420,7 +1419,7 @@ sudoers = ldap = auth, files
|
|||||||
.RE
|
.RE
|
||||||
.fi
|
.fi
|
||||||
.PP
|
.PP
|
||||||
Note that in the above example, the
|
In the above example, the
|
||||||
\fRauth\fR
|
\fRauth\fR
|
||||||
qualifier only affects user lookups; both LDAP and
|
qualifier only affects user lookups; both LDAP and
|
||||||
\fIsudoers\fR
|
\fIsudoers\fR
|
||||||
@@ -1455,7 +1454,7 @@ instead of
|
|||||||
\fRldap\fR
|
\fRldap\fR
|
||||||
for the sudoers entry in
|
for the sudoers entry in
|
||||||
\fI@nsswitch_conf@\fR.
|
\fI@nsswitch_conf@\fR.
|
||||||
Note that the
|
The
|
||||||
\fI@ldap_conf@\fR
|
\fI@ldap_conf@\fR
|
||||||
file is not used by the SSSD
|
file is not used by the SSSD
|
||||||
\fBsudo\fR
|
\fBsudo\fR
|
||||||
@@ -1703,7 +1702,7 @@ distribution (https://www.sudo.ws/about/contributors/) for an
|
|||||||
exhaustive list of people who have contributed to
|
exhaustive list of people who have contributed to
|
||||||
\fBsudo\fR.
|
\fBsudo\fR.
|
||||||
.SH "CAVEATS"
|
.SH "CAVEATS"
|
||||||
Note that there are differences in the way that LDAP-based
|
There are differences in the way that LDAP-based
|
||||||
\fIsudoers\fR
|
\fIsudoers\fR
|
||||||
is parsed compared to file-based
|
is parsed compared to file-based
|
||||||
\fIsudoers\fR.
|
\fIsudoers\fR.
|
||||||
|
@@ -161,9 +161,9 @@ with the
|
|||||||
option (or as
|
option (or as
|
||||||
.Nm sudoedit ) .
|
.Nm sudoedit ) .
|
||||||
It may take command line arguments just as a normal command does.
|
It may take command line arguments just as a normal command does.
|
||||||
Note that
|
Unlike other commands,
|
||||||
.Dq Li sudoedit
|
.Dq Li sudoedit
|
||||||
is a command built into
|
is a built into
|
||||||
.Nm sudo
|
.Nm sudo
|
||||||
itself and must be specified in without a leading path.
|
itself and must be specified in without a leading path.
|
||||||
.Pp
|
.Pp
|
||||||
@@ -272,7 +272,7 @@ will be valid.
|
|||||||
If multiple
|
If multiple
|
||||||
.Li sudoNotBefore
|
.Li sudoNotBefore
|
||||||
entries are present, the earliest is used.
|
entries are present, the earliest is used.
|
||||||
Note that timestamps must be in Coordinated Universal Time (UTC),
|
Timestamps must be in Coordinated Universal Time (UTC),
|
||||||
not the local timezone.
|
not the local timezone.
|
||||||
The minute and seconds portions are optional, but some LDAP servers
|
The minute and seconds portions are optional, but some LDAP servers
|
||||||
require that they be present (contrary to the RFC).
|
require that they be present (contrary to the RFC).
|
||||||
@@ -294,7 +294,7 @@ will no longer be valid.
|
|||||||
If multiple
|
If multiple
|
||||||
.Li sudoNotAfter
|
.Li sudoNotAfter
|
||||||
entries are present, the last one is used.
|
entries are present, the last one is used.
|
||||||
Note that timestamps must be in Coordinated Universal Time (UTC),
|
Timestamps must be in Coordinated Universal Time (UTC),
|
||||||
not the local timezone.
|
not the local timezone.
|
||||||
The minute and seconds portions are optional, but some LDAP servers
|
The minute and seconds portions are optional, but some LDAP servers
|
||||||
require that they be present (contrary to the RFC).
|
require that they be present (contrary to the RFC).
|
||||||
@@ -634,10 +634,10 @@ file for LDAP-specific configuration.
|
|||||||
Typically, this file is shared between different LDAP-aware clients.
|
Typically, this file is shared between different LDAP-aware clients.
|
||||||
As such, most of the settings are not
|
As such, most of the settings are not
|
||||||
.Nm sudo Ns -specific.
|
.Nm sudo Ns -specific.
|
||||||
Note that
|
The
|
||||||
.Nm sudo
|
|
||||||
parses
|
|
||||||
.Pa @ldap_conf@
|
.Pa @ldap_conf@
|
||||||
|
file is parsed by
|
||||||
|
.Nm sudo
|
||||||
itself and may support options that differ from those described in the
|
itself and may support options that differ from those described in the
|
||||||
system's
|
system's
|
||||||
.Xr ldap.conf @mansectform@
|
.Xr ldap.conf @mansectform@
|
||||||
@@ -649,8 +649,7 @@ may be overridden via the
|
|||||||
plugin argument in
|
plugin argument in
|
||||||
.Xr sudo.conf @mansectform@ .
|
.Xr sudo.conf @mansectform@ .
|
||||||
.Pp
|
.Pp
|
||||||
Also note that on systems using the OpenLDAP libraries, default
|
On systems using the OpenLDAP libraries, default values specified in
|
||||||
values specified in
|
|
||||||
.Pa /etc/openldap/ldap.conf
|
.Pa /etc/openldap/ldap.conf
|
||||||
or the user's
|
or the user's
|
||||||
.Pa .ldaprc
|
.Pa .ldaprc
|
||||||
@@ -1010,7 +1009,7 @@ will be unable to connect to it.
|
|||||||
If
|
If
|
||||||
.Sy TLS_CHECKPEER
|
.Sy TLS_CHECKPEER
|
||||||
is disabled, no check is made.
|
is disabled, no check is made.
|
||||||
Note that disabling the check creates an opportunity for man-in-the-middle
|
Disabling this check creates an opportunity for man-in-the-middle
|
||||||
attacks since the server's identity will not be authenticated.
|
attacks since the server's identity will not be authenticated.
|
||||||
If possible, the CA's certificate should be installed locally so it can
|
If possible, the CA's certificate should be installed locally so it can
|
||||||
be verified.
|
be verified.
|
||||||
@@ -1197,7 +1196,7 @@ search order.
|
|||||||
Sudo looks for a line beginning with
|
Sudo looks for a line beginning with
|
||||||
.Li sudoers :
|
.Li sudoers :
|
||||||
and uses this to determine the search order.
|
and uses this to determine the search order.
|
||||||
Note that by default,
|
By default,
|
||||||
.Nm sudo
|
.Nm sudo
|
||||||
does not stop searching after the first match and later matches take
|
does not stop searching after the first match and later matches take
|
||||||
precedence over earlier ones (unless
|
precedence over earlier ones (unless
|
||||||
@@ -1256,10 +1255,10 @@ default is assumed:
|
|||||||
sudoers: files
|
sudoers: files
|
||||||
.Ed
|
.Ed
|
||||||
.Pp
|
.Pp
|
||||||
Note that
|
The
|
||||||
.Pa @nsswitch_conf@
|
.Pa @nsswitch_conf@
|
||||||
is supported even when the underlying operating system does not use
|
file is supported even when the underlying operating system does not
|
||||||
an nsswitch.conf file, except on AIX (see below).
|
support it, except on AIX (see below).
|
||||||
.Ss Configuring netsvc.conf
|
.Ss Configuring netsvc.conf
|
||||||
On AIX systems, the
|
On AIX systems, the
|
||||||
.Pa @netsvc_conf@
|
.Pa @netsvc_conf@
|
||||||
@@ -1292,7 +1291,7 @@ if the user is not present in LDAP, use:
|
|||||||
sudoers = ldap = auth, files
|
sudoers = ldap = auth, files
|
||||||
.Ed
|
.Ed
|
||||||
.Pp
|
.Pp
|
||||||
Note that in the above example, the
|
In the above example, the
|
||||||
.Li auth
|
.Li auth
|
||||||
qualifier only affects user lookups; both LDAP and
|
qualifier only affects user lookups; both LDAP and
|
||||||
.Em sudoers
|
.Em sudoers
|
||||||
@@ -1324,7 +1323,7 @@ instead of
|
|||||||
.Li ldap
|
.Li ldap
|
||||||
for the sudoers entry in
|
for the sudoers entry in
|
||||||
.Pa @nsswitch_conf@ .
|
.Pa @nsswitch_conf@ .
|
||||||
Note that the
|
The
|
||||||
.Pa @ldap_conf@
|
.Pa @ldap_conf@
|
||||||
file is not used by the SSSD
|
file is not used by the SSSD
|
||||||
.Nm sudo
|
.Nm sudo
|
||||||
@@ -1565,7 +1564,7 @@ distribution (https://www.sudo.ws/about/contributors/) for an
|
|||||||
exhaustive list of people who have contributed to
|
exhaustive list of people who have contributed to
|
||||||
.Nm sudo .
|
.Nm sudo .
|
||||||
.Sh CAVEATS
|
.Sh CAVEATS
|
||||||
Note that there are differences in the way that LDAP-based
|
There are differences in the way that LDAP-based
|
||||||
.Em sudoers
|
.Em sudoers
|
||||||
is parsed compared to file-based
|
is parsed compared to file-based
|
||||||
.Em sudoers .
|
.Em sudoers .
|
||||||
|
@@ -208,7 +208,7 @@ Defaults entry
|
|||||||
(described later) and defaults to
|
(described later) and defaults to
|
||||||
\fR@mailto@\fR.
|
\fR@mailto@\fR.
|
||||||
.PP
|
.PP
|
||||||
Note that no mail will be sent if an unauthorized user tries to run
|
No mail will be sent if an unauthorized user tries to run
|
||||||
\fBsudo\fR
|
\fBsudo\fR
|
||||||
with the
|
with the
|
||||||
\fB\-l\fR
|
\fB\-l\fR
|
||||||
@@ -471,7 +471,7 @@ is displayed when
|
|||||||
is run by root with the
|
is run by root with the
|
||||||
\fB\-V\fR
|
\fB\-V\fR
|
||||||
option.
|
option.
|
||||||
Note that the list of environment variables to remove
|
The list of environment variables to remove
|
||||||
varies based on the operating system
|
varies based on the operating system
|
||||||
\fBsudo\fR
|
\fBsudo\fR
|
||||||
is running on.
|
is running on.
|
||||||
@@ -508,9 +508,9 @@ match a pattern in the
|
|||||||
\fIenv_delete\fR
|
\fIenv_delete\fR
|
||||||
list.
|
list.
|
||||||
.PP
|
.PP
|
||||||
Note that the dynamic linker on most operating systems will remove
|
The dynamic linker on most operating systems will remove variables
|
||||||
variables that can control dynamic linking from the environment of
|
that can control dynamic linking from the environment of set-user-ID
|
||||||
set-user-ID executables, including
|
executables, including
|
||||||
\fBsudo\fR.
|
\fBsudo\fR.
|
||||||
Depending on the operating
|
Depending on the operating
|
||||||
system this may include
|
system this may include
|
||||||
@@ -896,7 +896,7 @@ See
|
|||||||
\fIGROUP PROVIDER PLUGINS\fR
|
\fIGROUP PROVIDER PLUGINS\fR
|
||||||
for more information.
|
for more information.
|
||||||
.PP
|
.PP
|
||||||
Note that quotes around group names are optional.
|
Quotes around group names are optional.
|
||||||
Unquoted strings must use a backslash
|
Unquoted strings must use a backslash
|
||||||
(\(oq\e\(cq)
|
(\(oq\e\(cq)
|
||||||
to escape spaces and special characters.
|
to escape spaces and special characters.
|
||||||
@@ -931,13 +931,12 @@ of
|
|||||||
\fRUser_Alias\fRes
|
\fRUser_Alias\fRes
|
||||||
it can contain
|
it can contain
|
||||||
\fRRunas_Alias\fRes.
|
\fRRunas_Alias\fRes.
|
||||||
Note that
|
User names and groups are matched as strings.
|
||||||
user names and groups are matched as strings.
|
|
||||||
In other words, two users (groups) with the same user (group) ID
|
In other words, two users (groups) with the same user (group) ID
|
||||||
are considered to be distinct.
|
are considered to be distinct.
|
||||||
If you wish to match all user names with the same user-ID (e.g., root and
|
If you wish to match all user names with the same user-ID (e.g., root and
|
||||||
toor), you can use a user-ID instead of a name (#0 in the example given).
|
toor), you can use a user-ID instead of a name (#0 in the example given).
|
||||||
Note that the user-ID or group-ID specified in a
|
The user-ID or group-ID specified in a
|
||||||
\fRRunas_Member\fR
|
\fRRunas_Member\fR
|
||||||
need not be listed in the password or group database.
|
need not be listed in the password or group database.
|
||||||
.nf
|
.nf
|
||||||
@@ -983,7 +982,6 @@ command on your machine returns the fully
|
|||||||
qualified host name, you'll need to use the
|
qualified host name, you'll need to use the
|
||||||
\fIfqdn\fR
|
\fIfqdn\fR
|
||||||
flag for wildcards to be useful.
|
flag for wildcards to be useful.
|
||||||
Note that
|
|
||||||
\fBsudo\fR
|
\fBsudo\fR
|
||||||
only inspects actual network interfaces; this means that IP address
|
only inspects actual network interfaces; this means that IP address
|
||||||
127.0.0.1 (localhost) will never match.
|
127.0.0.1 (localhost) will never match.
|
||||||
@@ -1101,9 +1099,9 @@ with the
|
|||||||
option (or as
|
option (or as
|
||||||
\fBsudoedit\fR).
|
\fBsudoedit\fR).
|
||||||
It may take command line arguments just as a normal command does.
|
It may take command line arguments just as a normal command does.
|
||||||
Note that
|
Unlike other commands,
|
||||||
\(lq\fRsudoedit\fR\(rq
|
\(lq\fRsudoedit\fR\(rq
|
||||||
is a command built into
|
is built into
|
||||||
\fBsudo\fR
|
\fBsudo\fR
|
||||||
itself and must be specified in the
|
itself and must be specified in the
|
||||||
\fIsudoers\fR
|
\fIsudoers\fR
|
||||||
@@ -1180,7 +1178,7 @@ values at run-time via one or more
|
|||||||
lines.
|
lines.
|
||||||
These may affect all users on any host, all users on a specific host, a
|
These may affect all users on any host, all users on a specific host, a
|
||||||
specific user, a specific command, or commands being run as a specific user.
|
specific user, a specific command, or commands being run as a specific user.
|
||||||
Note that per-command entries may not include command line arguments.
|
Per-command entries may not include command line arguments.
|
||||||
If you need to specify arguments, define a
|
If you need to specify arguments, define a
|
||||||
\fRCmnd_Alias\fR
|
\fRCmnd_Alias\fR
|
||||||
and reference
|
and reference
|
||||||
@@ -1438,7 +1436,7 @@ dgb boulder = (operator : operator) /bin/ls, (root) /bin/kill,\e
|
|||||||
.RE
|
.RE
|
||||||
.fi
|
.fi
|
||||||
.PP
|
.PP
|
||||||
Note that while the group portion of the
|
While the group portion of the
|
||||||
\fRRunas_Spec\fR
|
\fRRunas_Spec\fR
|
||||||
permits the
|
permits the
|
||||||
user to run as command with that group, it does not force the user
|
user to run as command with that group, it does not force the user
|
||||||
@@ -1468,8 +1466,7 @@ tcm boulder = (:dialer) /usr/bin/tip, /usr/bin/cu,\e
|
|||||||
.RE
|
.RE
|
||||||
.fi
|
.fi
|
||||||
.PP
|
.PP
|
||||||
Note that in this example only the group will be set, the command
|
In this example only the group will be set, the command still runs as user
|
||||||
still runs as user
|
|
||||||
\fBtcm\fR.
|
\fBtcm\fR.
|
||||||
E.g.\&
|
E.g.\&
|
||||||
.nf
|
.nf
|
||||||
@@ -1517,7 +1514,7 @@ subsequent
|
|||||||
in the
|
in the
|
||||||
\fRCmnd_Spec_List\fR,
|
\fRCmnd_Spec_List\fR,
|
||||||
inherit that option unless it is overridden by another option.
|
inherit that option unless it is overridden by another option.
|
||||||
Note that the option names are reserved words in
|
Option names are reserved words in
|
||||||
\fIsudoers\fR.
|
\fIsudoers\fR.
|
||||||
This means that none of the valid option names (see below) can be used
|
This means that none of the valid option names (see below) can be used
|
||||||
when declaring an alias.
|
when declaring an alias.
|
||||||
@@ -1933,7 +1930,7 @@ options.
|
|||||||
These tags override the value of the
|
These tags override the value of the
|
||||||
\fIsetenv\fR
|
\fIsetenv\fR
|
||||||
flag on a per-command basis.
|
flag on a per-command basis.
|
||||||
Note that if
|
If
|
||||||
\fRSETENV\fR
|
\fRSETENV\fR
|
||||||
has been set for a command, the user may disable the
|
has been set for a command, the user may disable the
|
||||||
\fIenv_reset\fR
|
\fIenv_reset\fR
|
||||||
@@ -2031,7 +2028,7 @@ This is used to escape special characters such as:
|
|||||||
and
|
and
|
||||||
\(oq]\&\(cq.
|
\(oq]\&\(cq.
|
||||||
.PP
|
.PP
|
||||||
\fBNote that these are not regular expressions.\fR
|
\fBThese are not regular expressions.\fR
|
||||||
Unlike a regular expression there is no way to match one or more
|
Unlike a regular expression there is no way to match one or more
|
||||||
characters within a range.
|
characters within a range.
|
||||||
.PP
|
.PP
|
||||||
@@ -2056,7 +2053,7 @@ For example:
|
|||||||
.PP
|
.PP
|
||||||
Would match any file name beginning with a letter.
|
Would match any file name beginning with a letter.
|
||||||
.PP
|
.PP
|
||||||
Note that a forward slash
|
A forward slash
|
||||||
(\(oq/\(cq)
|
(\(oq/\(cq)
|
||||||
will
|
will
|
||||||
\fInot\fR
|
\fInot\fR
|
||||||
@@ -2355,7 +2352,7 @@ file that contained the
|
|||||||
\fR@includedir\fR
|
\fR@includedir\fR
|
||||||
directive.
|
directive.
|
||||||
.PP
|
.PP
|
||||||
Note that unlike files included via
|
Unlike files included via
|
||||||
\fR@include\fR,
|
\fR@include\fR,
|
||||||
\fBvisudo\fR
|
\fBvisudo\fR
|
||||||
will not edit the files in a
|
will not edit the files in a
|
||||||
@@ -2395,7 +2392,7 @@ Attempting to define an
|
|||||||
named
|
named
|
||||||
\fBALL\fR
|
\fBALL\fR
|
||||||
will result in a syntax error.
|
will result in a syntax error.
|
||||||
Note that using
|
Using
|
||||||
\fBALL\fR
|
\fBALL\fR
|
||||||
can be dangerous since in a command context, it allows the user to run
|
can be dangerous since in a command context, it allows the user to run
|
||||||
\fIany\fR
|
\fIany\fR
|
||||||
@@ -2658,7 +2655,6 @@ will use the value of the
|
|||||||
or
|
or
|
||||||
\fREDITOR\fR
|
\fREDITOR\fR
|
||||||
environment variables before falling back on the default editor list.
|
environment variables before falling back on the default editor list.
|
||||||
Note that
|
|
||||||
\fBvisudo\fR
|
\fBvisudo\fR
|
||||||
is typically run as root so this flag may allow a user with
|
is typically run as root so this flag may allow a user with
|
||||||
\fBvisudo\fR
|
\fBvisudo\fR
|
||||||
@@ -2873,7 +2869,7 @@ to make DNS lookups which renders
|
|||||||
\fBsudo\fR
|
\fBsudo\fR
|
||||||
unusable if DNS stops working (for example if the machine is disconnected
|
unusable if DNS stops working (for example if the machine is disconnected
|
||||||
from the network).
|
from the network).
|
||||||
Also note that just like with the hosts file, you must use the
|
Just like with the hosts file, you must use the
|
||||||
\(lqcanonical\(rq
|
\(lqcanonical\(rq
|
||||||
name as DNS knows it.
|
name as DNS knows it.
|
||||||
That is, you may not use a host alias
|
That is, you may not use a host alias
|
||||||
@@ -3251,7 +3247,7 @@ must look up any group name listed in the
|
|||||||
file and use the group-ID instead of the group name when determining
|
file and use the group-ID instead of the group name when determining
|
||||||
whether the user is a member of the group.
|
whether the user is a member of the group.
|
||||||
.sp
|
.sp
|
||||||
Note that if
|
If
|
||||||
\fImatch_group_by_gid\fR
|
\fImatch_group_by_gid\fR
|
||||||
is enabled, group database lookups performed by
|
is enabled, group database lookups performed by
|
||||||
\fBsudoers\fR
|
\fBsudoers\fR
|
||||||
@@ -3548,7 +3544,7 @@ When
|
|||||||
is set,
|
is set,
|
||||||
\fBsudo\fR
|
\fBsudo\fR
|
||||||
will provide visual feedback when the user presses a key.
|
will provide visual feedback when the user presses a key.
|
||||||
Note that this does have a security impact as an onlooker may be able to
|
This does have a security impact as an onlooker may be able to
|
||||||
determine the length of the password being entered.
|
determine the length of the password being entered.
|
||||||
This flag is
|
This flag is
|
||||||
\fIoff\fR
|
\fIoff\fR
|
||||||
@@ -3695,9 +3691,9 @@ However, since some programs (including the RCS revision control system) use
|
|||||||
to determine the real identity of the user, it may be desirable to
|
to determine the real identity of the user, it may be desirable to
|
||||||
change this behavior.
|
change this behavior.
|
||||||
This can be done by negating the set_logname option.
|
This can be done by negating the set_logname option.
|
||||||
Note that
|
The
|
||||||
\fIset_logname\fR
|
\fIset_logname\fR
|
||||||
will have no effect
|
option will have no effect
|
||||||
if the
|
if the
|
||||||
\fIenv_reset\fR
|
\fIenv_reset\fR
|
||||||
option has not been disabled and the
|
option has not been disabled and the
|
||||||
@@ -3846,7 +3842,7 @@ option (defaults to
|
|||||||
\fRroot\fR)
|
\fRroot\fR)
|
||||||
instead of the password of the invoking user
|
instead of the password of the invoking user
|
||||||
when running a command or editing a file.
|
when running a command or editing a file.
|
||||||
Note that this flag precludes the use of a user-ID not listed in the passwd
|
This flag precludes the use of a user-ID not listed in the passwd
|
||||||
database as an argument to the
|
database as an argument to the
|
||||||
\fB\-u\fR
|
\fB\-u\fR
|
||||||
option.
|
option.
|
||||||
@@ -4284,7 +4280,6 @@ options are enabled or when the
|
|||||||
or
|
or
|
||||||
\fRLOG_OUTPUT\fR
|
\fRLOG_OUTPUT\fR
|
||||||
tags are present for a command.
|
tags are present for a command.
|
||||||
Note that
|
|
||||||
\fIiolog_file\fR
|
\fIiolog_file\fR
|
||||||
may contain directory components.
|
may contain directory components.
|
||||||
The default is
|
The default is
|
||||||
@@ -4611,7 +4606,7 @@ This defaults to
|
|||||||
sudoers_locale
|
sudoers_locale
|
||||||
Locale to use when parsing the sudoers file, logging commands, and
|
Locale to use when parsing the sudoers file, logging commands, and
|
||||||
sending email.
|
sending email.
|
||||||
Note that changing the locale may affect how sudoers is interpreted.
|
Changing the locale may affect how sudoers is interpreted.
|
||||||
Defaults to
|
Defaults to
|
||||||
\(lq\fRC\fR\(rq.
|
\(lq\fRC\fR\(rq.
|
||||||
.TP 18n
|
.TP 18n
|
||||||
@@ -4778,7 +4773,6 @@ The default value is
|
|||||||
This avoids a time of check versus time of use race condition when
|
This avoids a time of check versus time of use race condition when
|
||||||
the command is located in a directory writable by the invoking user.
|
the command is located in a directory writable by the invoking user.
|
||||||
.sp
|
.sp
|
||||||
Note that
|
|
||||||
\fIfdexec\fR
|
\fIfdexec\fR
|
||||||
will change the first element of the argument vector for scripts
|
will change the first element of the argument vector for scripts
|
||||||
($0 in the shell) due to the way the kernel runs script interpreters.
|
($0 in the shell) due to the way the kernel runs script interpreters.
|
||||||
@@ -5337,8 +5331,8 @@ The global list of environment variables to remove is displayed when
|
|||||||
is run by root with the
|
is run by root with the
|
||||||
\fB\-V\fR
|
\fB\-V\fR
|
||||||
option.
|
option.
|
||||||
Note that many operating systems will remove potentially dangerous
|
Many operating systems will remove potentially dangerous variables
|
||||||
variables from the environment of any set-user-ID process (such as
|
from the environment of any set-user-ID process (such as
|
||||||
\fBsudo\fR).
|
\fBsudo\fR).
|
||||||
.TP 18n
|
.TP 18n
|
||||||
env_keep
|
env_keep
|
||||||
@@ -6045,8 +6039,7 @@ a pipe or file.
|
|||||||
.TP 10n
|
.TP 10n
|
||||||
\fIttyout\fR
|
\fIttyout\fR
|
||||||
Output from the pseudo-terminal (what the command writes to the screen).
|
Output from the pseudo-terminal (what the command writes to the screen).
|
||||||
Note that terminal-specific post-processing is performed before the
|
Terminal-specific post-processing is performed before the data is logged.
|
||||||
data is logged.
|
|
||||||
This means that, for example, line feeds are usually converted to
|
This means that, for example, line feeds are usually converted to
|
||||||
line feed/carriage return pairs and tabs may be expanded to spaces.
|
line feed/carriage return pairs and tabs may be expanded to spaces.
|
||||||
.TP 10n
|
.TP 10n
|
||||||
@@ -6075,9 +6068,9 @@ The output portion of an I/O log file can be viewed with the
|
|||||||
sudoreplay(@mansectsu@)
|
sudoreplay(@mansectsu@)
|
||||||
utility, which can also be used to list or search the available logs.
|
utility, which can also be used to list or search the available logs.
|
||||||
.PP
|
.PP
|
||||||
Note that user input may contain sensitive information such as
|
User input may contain sensitive information such as passwords (even
|
||||||
passwords (even if they are not echoed to the screen), which will
|
if they are not echoed to the screen), which will be stored in the
|
||||||
be stored in the log file unencrypted.
|
log file unencrypted.
|
||||||
In most cases, logging the command output via
|
In most cases, logging the command output via
|
||||||
\fIlog_output\fR
|
\fIlog_output\fR
|
||||||
or
|
or
|
||||||
@@ -6137,8 +6130,8 @@ First, we allow a few environment variables to pass and then define our
|
|||||||
.sp
|
.sp
|
||||||
.RS 0n
|
.RS 0n
|
||||||
# Run X applications through sudo; HOME is used to find the
|
# Run X applications through sudo; HOME is used to find the
|
||||||
# .Xauthority file. Note that other programs use HOME to find
|
# .Xauthority file. Other programs use HOME to locate configuration
|
||||||
# configuration files and this may lead to privilege escalation!
|
# files and this may lead to privilege escalation!
|
||||||
Defaults env_keep += "DISPLAY HOME"
|
Defaults env_keep += "DISPLAY HOME"
|
||||||
|
|
||||||
# User alias specification
|
# User alias specification
|
||||||
@@ -6215,7 +6208,7 @@ Lastly, we disable shell escapes for the commands in the PAGERS
|
|||||||
and
|
and
|
||||||
\fI/usr/bin/less\fR)
|
\fI/usr/bin/less\fR)
|
||||||
\&.
|
\&.
|
||||||
Note that this will not effectively constrain users with
|
This will not effectively constrain users with
|
||||||
\fBsudo\fR
|
\fBsudo\fR
|
||||||
\fBALL\fR
|
\fBALL\fR
|
||||||
privileges.
|
privileges.
|
||||||
@@ -6327,7 +6320,7 @@ Here, those are commands related to backups, killing processes, the
|
|||||||
printing system, shutting down the system, and any commands in the
|
printing system, shutting down the system, and any commands in the
|
||||||
directory
|
directory
|
||||||
\fI/usr/oper/bin/\fR.
|
\fI/usr/oper/bin/\fR.
|
||||||
Note that one command in the
|
One command in the
|
||||||
\fRDUMPS\fR
|
\fRDUMPS\fR
|
||||||
Cmnd_Alias includes a sha224 digest,
|
Cmnd_Alias includes a sha224 digest,
|
||||||
\fI/home/operator/bin/start_backups\fR.
|
\fI/home/operator/bin/start_backups\fR.
|
||||||
@@ -6386,7 +6379,9 @@ words.
|
|||||||
This example assumes that
|
This example assumes that
|
||||||
passwd(1)
|
passwd(1)
|
||||||
does not take multiple user names on the command line.
|
does not take multiple user names on the command line.
|
||||||
Note that on GNU systems, options to
|
On systems with GNU
|
||||||
|
getopt(3),
|
||||||
|
options to
|
||||||
passwd(1)
|
passwd(1)
|
||||||
may be specified after the user argument.
|
may be specified after the user argument.
|
||||||
As a result, this rule will also allow:
|
As a result, this rule will also allow:
|
||||||
@@ -6927,7 +6922,7 @@ you can always just try it out and check whether shell escapes work when
|
|||||||
is enabled.
|
is enabled.
|
||||||
.RE
|
.RE
|
||||||
.PP
|
.PP
|
||||||
Note that restricting shell escapes is not a panacea.
|
Restricting shell escapes is not a panacea.
|
||||||
Programs running as root are still capable of many potentially hazardous
|
Programs running as root are still capable of many potentially hazardous
|
||||||
operations (such as changing or overwriting files) that could lead
|
operations (such as changing or overwriting files) that could lead
|
||||||
to unintended privilege escalation.
|
to unintended privilege escalation.
|
||||||
|
@@ -196,7 +196,7 @@ Defaults entry
|
|||||||
(described later) and defaults to
|
(described later) and defaults to
|
||||||
.Li @mailto@ .
|
.Li @mailto@ .
|
||||||
.Pp
|
.Pp
|
||||||
Note that no mail will be sent if an unauthorized user tries to run
|
No mail will be sent if an unauthorized user tries to run
|
||||||
.Nm sudo
|
.Nm sudo
|
||||||
with the
|
with the
|
||||||
.Fl l
|
.Fl l
|
||||||
@@ -457,7 +457,7 @@ is displayed when
|
|||||||
is run by root with the
|
is run by root with the
|
||||||
.Fl V
|
.Fl V
|
||||||
option.
|
option.
|
||||||
Note that the list of environment variables to remove
|
The list of environment variables to remove
|
||||||
varies based on the operating system
|
varies based on the operating system
|
||||||
.Nm sudo
|
.Nm sudo
|
||||||
is running on.
|
is running on.
|
||||||
@@ -494,9 +494,9 @@ match a pattern in the
|
|||||||
.Em env_delete
|
.Em env_delete
|
||||||
list.
|
list.
|
||||||
.Pp
|
.Pp
|
||||||
Note that the dynamic linker on most operating systems will remove
|
The dynamic linker on most operating systems will remove variables
|
||||||
variables that can control dynamic linking from the environment of
|
that can control dynamic linking from the environment of set-user-ID
|
||||||
set-user-ID executables, including
|
executables, including
|
||||||
.Nm sudo .
|
.Nm sudo .
|
||||||
Depending on the operating
|
Depending on the operating
|
||||||
system this may include
|
system this may include
|
||||||
@@ -864,7 +864,7 @@ See
|
|||||||
.Sx "GROUP PROVIDER PLUGINS"
|
.Sx "GROUP PROVIDER PLUGINS"
|
||||||
for more information.
|
for more information.
|
||||||
.Pp
|
.Pp
|
||||||
Note that quotes around group names are optional.
|
Quotes around group names are optional.
|
||||||
Unquoted strings must use a backslash
|
Unquoted strings must use a backslash
|
||||||
.Pq Ql \e
|
.Pq Ql \e
|
||||||
to escape spaces and special characters.
|
to escape spaces and special characters.
|
||||||
@@ -896,13 +896,12 @@ of
|
|||||||
.Li User_Alias Ns es
|
.Li User_Alias Ns es
|
||||||
it can contain
|
it can contain
|
||||||
.Li Runas_Alias Ns es .
|
.Li Runas_Alias Ns es .
|
||||||
Note that
|
User names and groups are matched as strings.
|
||||||
user names and groups are matched as strings.
|
|
||||||
In other words, two users (groups) with the same user (group) ID
|
In other words, two users (groups) with the same user (group) ID
|
||||||
are considered to be distinct.
|
are considered to be distinct.
|
||||||
If you wish to match all user names with the same user-ID (e.g., root and
|
If you wish to match all user names with the same user-ID (e.g., root and
|
||||||
toor), you can use a user-ID instead of a name (#0 in the example given).
|
toor), you can use a user-ID instead of a name (#0 in the example given).
|
||||||
Note that the user-ID or group-ID specified in a
|
The user-ID or group-ID specified in a
|
||||||
.Li Runas_Member
|
.Li Runas_Member
|
||||||
need not be listed in the password or group database.
|
need not be listed in the password or group database.
|
||||||
.Bd -literal
|
.Bd -literal
|
||||||
@@ -945,7 +944,6 @@ command on your machine returns the fully
|
|||||||
qualified host name, you'll need to use the
|
qualified host name, you'll need to use the
|
||||||
.Em fqdn
|
.Em fqdn
|
||||||
flag for wildcards to be useful.
|
flag for wildcards to be useful.
|
||||||
Note that
|
|
||||||
.Nm sudo
|
.Nm sudo
|
||||||
only inspects actual network interfaces; this means that IP address
|
only inspects actual network interfaces; this means that IP address
|
||||||
127.0.0.1 (localhost) will never match.
|
127.0.0.1 (localhost) will never match.
|
||||||
@@ -1060,9 +1058,9 @@ with the
|
|||||||
option (or as
|
option (or as
|
||||||
.Nm sudoedit ) .
|
.Nm sudoedit ) .
|
||||||
It may take command line arguments just as a normal command does.
|
It may take command line arguments just as a normal command does.
|
||||||
Note that
|
Unlike other commands,
|
||||||
.Dq Li sudoedit
|
.Dq Li sudoedit
|
||||||
is a command built into
|
is built into
|
||||||
.Nm sudo
|
.Nm sudo
|
||||||
itself and must be specified in the
|
itself and must be specified in the
|
||||||
.Em sudoers
|
.Em sudoers
|
||||||
@@ -1133,7 +1131,7 @@ values at run-time via one or more
|
|||||||
lines.
|
lines.
|
||||||
These may affect all users on any host, all users on a specific host, a
|
These may affect all users on any host, all users on a specific host, a
|
||||||
specific user, a specific command, or commands being run as a specific user.
|
specific user, a specific command, or commands being run as a specific user.
|
||||||
Note that per-command entries may not include command line arguments.
|
Per-command entries may not include command line arguments.
|
||||||
If you need to specify arguments, define a
|
If you need to specify arguments, define a
|
||||||
.Li Cmnd_Alias
|
.Li Cmnd_Alias
|
||||||
and reference
|
and reference
|
||||||
@@ -1374,7 +1372,7 @@ dgb boulder = (operator : operator) /bin/ls, (root) /bin/kill,\e
|
|||||||
/usr/bin/lprm
|
/usr/bin/lprm
|
||||||
.Ed
|
.Ed
|
||||||
.Pp
|
.Pp
|
||||||
Note that while the group portion of the
|
While the group portion of the
|
||||||
.Li Runas_Spec
|
.Li Runas_Spec
|
||||||
permits the
|
permits the
|
||||||
user to run as command with that group, it does not force the user
|
user to run as command with that group, it does not force the user
|
||||||
@@ -1398,8 +1396,7 @@ tcm boulder = (:dialer) /usr/bin/tip, /usr/bin/cu,\e
|
|||||||
/usr/local/bin/minicom
|
/usr/local/bin/minicom
|
||||||
.Ed
|
.Ed
|
||||||
.Pp
|
.Pp
|
||||||
Note that in this example only the group will be set, the command
|
In this example only the group will be set, the command still runs as user
|
||||||
still runs as user
|
|
||||||
.Sy tcm .
|
.Sy tcm .
|
||||||
E.g.\&
|
E.g.\&
|
||||||
.Bd -literal
|
.Bd -literal
|
||||||
@@ -1441,7 +1438,7 @@ subsequent
|
|||||||
in the
|
in the
|
||||||
.Li Cmnd_Spec_List ,
|
.Li Cmnd_Spec_List ,
|
||||||
inherit that option unless it is overridden by another option.
|
inherit that option unless it is overridden by another option.
|
||||||
Note that the option names are reserved words in
|
Option names are reserved words in
|
||||||
.Em sudoers .
|
.Em sudoers .
|
||||||
This means that none of the valid option names (see below) can be used
|
This means that none of the valid option names (see below) can be used
|
||||||
when declaring an alias.
|
when declaring an alias.
|
||||||
@@ -1830,7 +1827,7 @@ options.
|
|||||||
These tags override the value of the
|
These tags override the value of the
|
||||||
.Em setenv
|
.Em setenv
|
||||||
flag on a per-command basis.
|
flag on a per-command basis.
|
||||||
Note that if
|
If
|
||||||
.Li SETENV
|
.Li SETENV
|
||||||
has been set for a command, the user may disable the
|
has been set for a command, the user may disable the
|
||||||
.Em env_reset
|
.Em env_reset
|
||||||
@@ -1921,7 +1918,7 @@ and
|
|||||||
.El
|
.El
|
||||||
.Pp
|
.Pp
|
||||||
.Bf -symbolic
|
.Bf -symbolic
|
||||||
Note that these are not regular expressions.
|
These are not regular expressions.
|
||||||
.Ef
|
.Ef
|
||||||
Unlike a regular expression there is no way to match one or more
|
Unlike a regular expression there is no way to match one or more
|
||||||
characters within a range.
|
characters within a range.
|
||||||
@@ -1944,7 +1941,7 @@ For example:
|
|||||||
.Pp
|
.Pp
|
||||||
Would match any file name beginning with a letter.
|
Would match any file name beginning with a letter.
|
||||||
.Pp
|
.Pp
|
||||||
Note that a forward slash
|
A forward slash
|
||||||
.Pq Ql /
|
.Pq Ql /
|
||||||
will
|
will
|
||||||
.Em not
|
.Em not
|
||||||
@@ -2221,7 +2218,7 @@ file that contained the
|
|||||||
.Li @includedir
|
.Li @includedir
|
||||||
directive.
|
directive.
|
||||||
.Pp
|
.Pp
|
||||||
Note that unlike files included via
|
Unlike files included via
|
||||||
.Li @include ,
|
.Li @include ,
|
||||||
.Nm visudo
|
.Nm visudo
|
||||||
will not edit the files in a
|
will not edit the files in a
|
||||||
@@ -2261,7 +2258,7 @@ Attempting to define an
|
|||||||
named
|
named
|
||||||
.Sy ALL
|
.Sy ALL
|
||||||
will result in a syntax error.
|
will result in a syntax error.
|
||||||
Note that using
|
Using
|
||||||
.Sy ALL
|
.Sy ALL
|
||||||
can be dangerous since in a command context, it allows the user to run
|
can be dangerous since in a command context, it allows the user to run
|
||||||
.Em any
|
.Em any
|
||||||
@@ -2508,7 +2505,6 @@ will use the value of the
|
|||||||
or
|
or
|
||||||
.Ev EDITOR
|
.Ev EDITOR
|
||||||
environment variables before falling back on the default editor list.
|
environment variables before falling back on the default editor list.
|
||||||
Note that
|
|
||||||
.Nm visudo
|
.Nm visudo
|
||||||
is typically run as root so this flag may allow a user with
|
is typically run as root so this flag may allow a user with
|
||||||
.Nm visudo
|
.Nm visudo
|
||||||
@@ -2716,7 +2712,7 @@ to make DNS lookups which renders
|
|||||||
.Nm sudo
|
.Nm sudo
|
||||||
unusable if DNS stops working (for example if the machine is disconnected
|
unusable if DNS stops working (for example if the machine is disconnected
|
||||||
from the network).
|
from the network).
|
||||||
Also note that just like with the hosts file, you must use the
|
Just like with the hosts file, you must use the
|
||||||
.Dq canonical
|
.Dq canonical
|
||||||
name as DNS knows it.
|
name as DNS knows it.
|
||||||
That is, you may not use a host alias
|
That is, you may not use a host alias
|
||||||
@@ -3069,7 +3065,7 @@ must look up any group name listed in the
|
|||||||
file and use the group-ID instead of the group name when determining
|
file and use the group-ID instead of the group name when determining
|
||||||
whether the user is a member of the group.
|
whether the user is a member of the group.
|
||||||
.Pp
|
.Pp
|
||||||
Note that if
|
If
|
||||||
.Em match_group_by_gid
|
.Em match_group_by_gid
|
||||||
is enabled, group database lookups performed by
|
is enabled, group database lookups performed by
|
||||||
.Nm
|
.Nm
|
||||||
@@ -3351,7 +3347,7 @@ When
|
|||||||
is set,
|
is set,
|
||||||
.Nm sudo
|
.Nm sudo
|
||||||
will provide visual feedback when the user presses a key.
|
will provide visual feedback when the user presses a key.
|
||||||
Note that this does have a security impact as an onlooker may be able to
|
This does have a security impact as an onlooker may be able to
|
||||||
determine the length of the password being entered.
|
determine the length of the password being entered.
|
||||||
This flag is
|
This flag is
|
||||||
.Em off
|
.Em off
|
||||||
@@ -3488,9 +3484,9 @@ However, since some programs (including the RCS revision control system) use
|
|||||||
to determine the real identity of the user, it may be desirable to
|
to determine the real identity of the user, it may be desirable to
|
||||||
change this behavior.
|
change this behavior.
|
||||||
This can be done by negating the set_logname option.
|
This can be done by negating the set_logname option.
|
||||||
Note that
|
The
|
||||||
.Em set_logname
|
.Em set_logname
|
||||||
will have no effect
|
option will have no effect
|
||||||
if the
|
if the
|
||||||
.Em env_reset
|
.Em env_reset
|
||||||
option has not been disabled and the
|
option has not been disabled and the
|
||||||
@@ -3630,7 +3626,7 @@ option (defaults to
|
|||||||
.Li root )
|
.Li root )
|
||||||
instead of the password of the invoking user
|
instead of the password of the invoking user
|
||||||
when running a command or editing a file.
|
when running a command or editing a file.
|
||||||
Note that this flag precludes the use of a user-ID not listed in the passwd
|
This flag precludes the use of a user-ID not listed in the passwd
|
||||||
database as an argument to the
|
database as an argument to the
|
||||||
.Fl u
|
.Fl u
|
||||||
option.
|
option.
|
||||||
@@ -4040,7 +4036,6 @@ options are enabled or when the
|
|||||||
or
|
or
|
||||||
.Li LOG_OUTPUT
|
.Li LOG_OUTPUT
|
||||||
tags are present for a command.
|
tags are present for a command.
|
||||||
Note that
|
|
||||||
.Em iolog_file
|
.Em iolog_file
|
||||||
may contain directory components.
|
may contain directory components.
|
||||||
The default is
|
The default is
|
||||||
@@ -4338,7 +4333,7 @@ This defaults to
|
|||||||
.It sudoers_locale
|
.It sudoers_locale
|
||||||
Locale to use when parsing the sudoers file, logging commands, and
|
Locale to use when parsing the sudoers file, logging commands, and
|
||||||
sending email.
|
sending email.
|
||||||
Note that changing the locale may affect how sudoers is interpreted.
|
Changing the locale may affect how sudoers is interpreted.
|
||||||
Defaults to
|
Defaults to
|
||||||
.Dq Li C .
|
.Dq Li C .
|
||||||
.It timestamp_type
|
.It timestamp_type
|
||||||
@@ -4490,7 +4485,6 @@ The default value is
|
|||||||
This avoids a time of check versus time of use race condition when
|
This avoids a time of check versus time of use race condition when
|
||||||
the command is located in a directory writable by the invoking user.
|
the command is located in a directory writable by the invoking user.
|
||||||
.Pp
|
.Pp
|
||||||
Note that
|
|
||||||
.Em fdexec
|
.Em fdexec
|
||||||
will change the first element of the argument vector for scripts
|
will change the first element of the argument vector for scripts
|
||||||
($0 in the shell) due to the way the kernel runs script interpreters.
|
($0 in the shell) due to the way the kernel runs script interpreters.
|
||||||
@@ -4984,8 +4978,8 @@ The global list of environment variables to remove is displayed when
|
|||||||
is run by root with the
|
is run by root with the
|
||||||
.Fl V
|
.Fl V
|
||||||
option.
|
option.
|
||||||
Note that many operating systems will remove potentially dangerous
|
Many operating systems will remove potentially dangerous variables
|
||||||
variables from the environment of any set-user-ID process (such as
|
from the environment of any set-user-ID process (such as
|
||||||
.Nm sudo ) .
|
.Nm sudo ) .
|
||||||
.It env_keep
|
.It env_keep
|
||||||
Environment variables to be preserved in the user's environment when the
|
Environment variables to be preserved in the user's environment when the
|
||||||
@@ -5620,8 +5614,7 @@ The standard input when no terminal is present, or input redirected from
|
|||||||
a pipe or file.
|
a pipe or file.
|
||||||
.It Pa ttyout
|
.It Pa ttyout
|
||||||
Output from the pseudo-terminal (what the command writes to the screen).
|
Output from the pseudo-terminal (what the command writes to the screen).
|
||||||
Note that terminal-specific post-processing is performed before the
|
Terminal-specific post-processing is performed before the data is logged.
|
||||||
data is logged.
|
|
||||||
This means that, for example, line feeds are usually converted to
|
This means that, for example, line feeds are usually converted to
|
||||||
line feed/carriage return pairs and tabs may be expanded to spaces.
|
line feed/carriage return pairs and tabs may be expanded to spaces.
|
||||||
.It Pa stdout
|
.It Pa stdout
|
||||||
@@ -5649,9 +5642,9 @@ The output portion of an I/O log file can be viewed with the
|
|||||||
.Xr sudoreplay @mansectsu@
|
.Xr sudoreplay @mansectsu@
|
||||||
utility, which can also be used to list or search the available logs.
|
utility, which can also be used to list or search the available logs.
|
||||||
.Pp
|
.Pp
|
||||||
Note that user input may contain sensitive information such as
|
User input may contain sensitive information such as passwords (even
|
||||||
passwords (even if they are not echoed to the screen), which will
|
if they are not echoed to the screen), which will be stored in the
|
||||||
be stored in the log file unencrypted.
|
log file unencrypted.
|
||||||
In most cases, logging the command output via
|
In most cases, logging the command output via
|
||||||
.Em log_output
|
.Em log_output
|
||||||
or
|
or
|
||||||
@@ -5703,8 +5696,8 @@ First, we allow a few environment variables to pass and then define our
|
|||||||
.Em aliases :
|
.Em aliases :
|
||||||
.Bd -literal
|
.Bd -literal
|
||||||
# Run X applications through sudo; HOME is used to find the
|
# Run X applications through sudo; HOME is used to find the
|
||||||
# .Xauthority file. Note that other programs use HOME to find
|
# .Xauthority file. Other programs use HOME to locate configuration
|
||||||
# configuration files and this may lead to privilege escalation!
|
# files and this may lead to privilege escalation!
|
||||||
Defaults env_keep += "DISPLAY HOME"
|
Defaults env_keep += "DISPLAY HOME"
|
||||||
|
|
||||||
# User alias specification
|
# User alias specification
|
||||||
@@ -5781,7 +5774,7 @@ Lastly, we disable shell escapes for the commands in the PAGERS
|
|||||||
and
|
and
|
||||||
.Pa /usr/bin/less
|
.Pa /usr/bin/less
|
||||||
.Pc .
|
.Pc .
|
||||||
Note that this will not effectively constrain users with
|
This will not effectively constrain users with
|
||||||
.Nm sudo
|
.Nm sudo
|
||||||
.Sy ALL
|
.Sy ALL
|
||||||
privileges.
|
privileges.
|
||||||
@@ -5874,7 +5867,7 @@ Here, those are commands related to backups, killing processes, the
|
|||||||
printing system, shutting down the system, and any commands in the
|
printing system, shutting down the system, and any commands in the
|
||||||
directory
|
directory
|
||||||
.Pa /usr/oper/bin/ .
|
.Pa /usr/oper/bin/ .
|
||||||
Note that one command in the
|
One command in the
|
||||||
.Li DUMPS
|
.Li DUMPS
|
||||||
Cmnd_Alias includes a sha224 digest,
|
Cmnd_Alias includes a sha224 digest,
|
||||||
.Pa /home/operator/bin/start_backups .
|
.Pa /home/operator/bin/start_backups .
|
||||||
@@ -5927,7 +5920,9 @@ words.
|
|||||||
This example assumes that
|
This example assumes that
|
||||||
.Xr passwd 1
|
.Xr passwd 1
|
||||||
does not take multiple user names on the command line.
|
does not take multiple user names on the command line.
|
||||||
Note that on GNU systems, options to
|
On systems with GNU
|
||||||
|
.Xr getopt 3 ,
|
||||||
|
options to
|
||||||
.Xr passwd 1
|
.Xr passwd 1
|
||||||
may be specified after the user argument.
|
may be specified after the user argument.
|
||||||
As a result, this rule will also allow:
|
As a result, this rule will also allow:
|
||||||
@@ -6405,7 +6400,7 @@ you can always just try it out and check whether shell escapes work when
|
|||||||
is enabled.
|
is enabled.
|
||||||
.El
|
.El
|
||||||
.Pp
|
.Pp
|
||||||
Note that restricting shell escapes is not a panacea.
|
Restricting shell escapes is not a panacea.
|
||||||
Programs running as root are still capable of many potentially hazardous
|
Programs running as root are still capable of many potentially hazardous
|
||||||
operations (such as changing or overwriting files) that could lead
|
operations (such as changing or overwriting files) that could lead
|
||||||
to unintended privilege escalation.
|
to unintended privilege escalation.
|
||||||
|
@@ -153,7 +153,7 @@ similar to
|
|||||||
\(lqtail -f\(rq.
|
\(lqtail -f\(rq.
|
||||||
An I/O log file is considered to be complete when the write bits
|
An I/O log file is considered to be complete when the write bits
|
||||||
have been cleared on the session's timing file.
|
have been cleared on the session's timing file.
|
||||||
Note that versions of
|
Versions of
|
||||||
\fBsudo\fR
|
\fBsudo\fR
|
||||||
prior to 1.9.1 do not clear the write bits upon completion.
|
prior to 1.9.1 do not clear the write bits upon completion.
|
||||||
.TP 12n
|
.TP 12n
|
||||||
@@ -196,7 +196,7 @@ for a description of supported date and time formats.
|
|||||||
group \fIrunas_group\fR
|
group \fIrunas_group\fR
|
||||||
Evaluates to true if the command was run with the specified
|
Evaluates to true if the command was run with the specified
|
||||||
\fIrunas_group\fR.
|
\fIrunas_group\fR.
|
||||||
Note that unless a
|
Unless a
|
||||||
\fIrunas_group\fR
|
\fIrunas_group\fR
|
||||||
was explicitly specified when
|
was explicitly specified when
|
||||||
\fBsudo\fR
|
\fBsudo\fR
|
||||||
@@ -209,11 +209,11 @@ Evaluates to true if the command was run on the specified
|
|||||||
runas \fIrunas_user\fR
|
runas \fIrunas_user\fR
|
||||||
Evaluates to true if the command was run as the specified
|
Evaluates to true if the command was run as the specified
|
||||||
\fIrunas_user\fR.
|
\fIrunas_user\fR.
|
||||||
Note that
|
By default,
|
||||||
\fBsudo\fR
|
\fBsudo\fR
|
||||||
runs commands as user
|
runs commands as the
|
||||||
\fIroot\fR
|
\fIroot\fR
|
||||||
by default.
|
user.
|
||||||
.TP 8n
|
.TP 8n
|
||||||
todate \fIdate\fR
|
todate \fIdate\fR
|
||||||
Evaluates to true if the command was run on or prior to
|
Evaluates to true if the command was run on or prior to
|
||||||
@@ -248,7 +248,7 @@ operators as well as
|
|||||||
\(oq\&(\(cq
|
\(oq\&(\(cq
|
||||||
and
|
and
|
||||||
\(oq\&)\(cq
|
\(oq\&)\(cq
|
||||||
grouping (note that parentheses must generally be escaped from the shell).
|
grouping (parentheses must generally be escaped from the shell).
|
||||||
The
|
The
|
||||||
\fIand\fR
|
\fIand\fR
|
||||||
operator is optional, adjacent predicates have an implied
|
operator is optional, adjacent predicates have an implied
|
||||||
@@ -326,7 +326,7 @@ HH:MM:SS am MM/DD/CCYY timezone
|
|||||||
HH:MM:SS am Month, Day Year timezone
|
HH:MM:SS am Month, Day Year timezone
|
||||||
24 hour time may be used in place of am/pm, and month and day names
|
24 hour time may be used in place of am/pm, and month and day names
|
||||||
may be abbreviated.
|
may be abbreviated.
|
||||||
Note that month and day of the week names must be specified in English.
|
Month and day of the week names must be specified in English.
|
||||||
.TP 8n
|
.TP 8n
|
||||||
CCYY-MM-DD HH:MM:SS
|
CCYY-MM-DD HH:MM:SS
|
||||||
ISO time format
|
ISO time format
|
||||||
@@ -383,7 +383,7 @@ The current time but 14 days ago.
|
|||||||
10:01 am Sep 17, 2009
|
10:01 am Sep 17, 2009
|
||||||
10:01 am, September 17, 2009.
|
10:01 am, September 17, 2009.
|
||||||
.PP
|
.PP
|
||||||
Note that relative time specifications do not always work as expected.
|
Relative time specifications do not always work as expected.
|
||||||
For example, the
|
For example, the
|
||||||
\(lqnext\(rq
|
\(lqnext\(rq
|
||||||
qualifier is intended to be used in conjunction with a day such as
|
qualifier is intended to be used in conjunction with a day such as
|
||||||
@@ -440,7 +440,7 @@ Example session tty output file.
|
|||||||
\fI@iolog_dir@/00/00/01/timing\fR
|
\fI@iolog_dir@/00/00/01/timing\fR
|
||||||
Example session timing file.
|
Example session timing file.
|
||||||
.PP
|
.PP
|
||||||
Note that the
|
The
|
||||||
\fIstdin\fR,
|
\fIstdin\fR,
|
||||||
\fIstdout\fR
|
\fIstdout\fR
|
||||||
and
|
and
|
||||||
|
@@ -147,7 +147,7 @@ similar to
|
|||||||
.Dq tail -f .
|
.Dq tail -f .
|
||||||
An I/O log file is considered to be complete when the write bits
|
An I/O log file is considered to be complete when the write bits
|
||||||
have been cleared on the session's timing file.
|
have been cleared on the session's timing file.
|
||||||
Note that versions of
|
Versions of
|
||||||
.Nm sudo
|
.Nm sudo
|
||||||
prior to 1.9.1 do not clear the write bits upon completion.
|
prior to 1.9.1 do not clear the write bits upon completion.
|
||||||
.It Fl h , -help
|
.It Fl h , -help
|
||||||
@@ -181,7 +181,7 @@ for a description of supported date and time formats.
|
|||||||
.It group Ar runas_group
|
.It group Ar runas_group
|
||||||
Evaluates to true if the command was run with the specified
|
Evaluates to true if the command was run with the specified
|
||||||
.Ar runas_group .
|
.Ar runas_group .
|
||||||
Note that unless a
|
Unless a
|
||||||
.Ar runas_group
|
.Ar runas_group
|
||||||
was explicitly specified when
|
was explicitly specified when
|
||||||
.Nm sudo
|
.Nm sudo
|
||||||
@@ -192,11 +192,11 @@ Evaluates to true if the command was run on the specified
|
|||||||
.It runas Ar runas_user
|
.It runas Ar runas_user
|
||||||
Evaluates to true if the command was run as the specified
|
Evaluates to true if the command was run as the specified
|
||||||
.Ar runas_user .
|
.Ar runas_user .
|
||||||
Note that
|
By default,
|
||||||
.Nm sudo
|
.Nm sudo
|
||||||
runs commands as user
|
runs commands as the
|
||||||
.Em root
|
.Em root
|
||||||
by default.
|
user.
|
||||||
.It todate Ar date
|
.It todate Ar date
|
||||||
Evaluates to true if the command was run on or prior to
|
Evaluates to true if the command was run on or prior to
|
||||||
.Ar date .
|
.Ar date .
|
||||||
@@ -229,7 +229,7 @@ operators as well as
|
|||||||
.Ql \&(
|
.Ql \&(
|
||||||
and
|
and
|
||||||
.Ql \&)
|
.Ql \&)
|
||||||
grouping (note that parentheses must generally be escaped from the shell).
|
grouping (parentheses must generally be escaped from the shell).
|
||||||
The
|
The
|
||||||
.Em and
|
.Em and
|
||||||
operator is optional, adjacent predicates have an implied
|
operator is optional, adjacent predicates have an implied
|
||||||
@@ -300,7 +300,7 @@ The time and date may be specified multiple ways, common formats include:
|
|||||||
.It HH:MM:SS am Month, Day Year timezone
|
.It HH:MM:SS am Month, Day Year timezone
|
||||||
24 hour time may be used in place of am/pm, and month and day names
|
24 hour time may be used in place of am/pm, and month and day names
|
||||||
may be abbreviated.
|
may be abbreviated.
|
||||||
Note that month and day of the week names must be specified in English.
|
Month and day of the week names must be specified in English.
|
||||||
.It CCYY-MM-DD HH:MM:SS
|
.It CCYY-MM-DD HH:MM:SS
|
||||||
ISO time format
|
ISO time format
|
||||||
.It DD Month CCYY HH:MM:SS
|
.It DD Month CCYY HH:MM:SS
|
||||||
@@ -346,7 +346,7 @@ The current time but 14 days ago.
|
|||||||
10:01 am, September 17, 2009.
|
10:01 am, September 17, 2009.
|
||||||
.El
|
.El
|
||||||
.Pp
|
.Pp
|
||||||
Note that relative time specifications do not always work as expected.
|
Relative time specifications do not always work as expected.
|
||||||
For example, the
|
For example, the
|
||||||
.Dq next
|
.Dq next
|
||||||
qualifier is intended to be used in conjunction with a day such as
|
qualifier is intended to be used in conjunction with a day such as
|
||||||
@@ -395,7 +395,7 @@ Example session tty output file.
|
|||||||
Example session timing file.
|
Example session timing file.
|
||||||
.El
|
.El
|
||||||
.Pp
|
.Pp
|
||||||
Note that the
|
The
|
||||||
.Em stdin ,
|
.Em stdin ,
|
||||||
.Em stdout
|
.Em stdout
|
||||||
and
|
and
|
||||||
|
@@ -98,7 +98,6 @@ or
|
|||||||
\fREDITOR\fR
|
\fREDITOR\fR
|
||||||
environment variable if possible, or the first editor in the
|
environment variable if possible, or the first editor in the
|
||||||
list that exists and is executable.
|
list that exists and is executable.
|
||||||
Note that
|
|
||||||
\fBsudo\fR
|
\fBsudo\fR
|
||||||
does not preserve the
|
does not preserve the
|
||||||
\fRSUDO_EDITOR\fR,
|
\fRSUDO_EDITOR\fR,
|
||||||
@@ -127,7 +126,6 @@ will use the value of the
|
|||||||
or
|
or
|
||||||
\fREDITOR\fR
|
\fREDITOR\fR
|
||||||
environment variables before falling back on the default editor list.
|
environment variables before falling back on the default editor list.
|
||||||
Note that
|
|
||||||
\fBvisudo\fR
|
\fBvisudo\fR
|
||||||
is typically run as root so this option may allow a user with
|
is typically run as root so this option may allow a user with
|
||||||
\fBvisudo\fR
|
\fBvisudo\fR
|
||||||
@@ -254,9 +252,9 @@ If an alias is referenced but not actually defined
|
|||||||
or if there is a cycle in an alias,
|
or if there is a cycle in an alias,
|
||||||
\fBvisudo\fR
|
\fBvisudo\fR
|
||||||
will consider this a syntax error.
|
will consider this a syntax error.
|
||||||
Note that it is not possible to differentiate between an
|
It is not possible to differentiate between an alias and a host
|
||||||
alias and a host name or user name that consists solely of uppercase
|
name or user name that consists solely of uppercase letters, digits,
|
||||||
letters, digits, and the underscore
|
and the underscore
|
||||||
(\(oq_\(cq)
|
(\(oq_\(cq)
|
||||||
character.
|
character.
|
||||||
.TP 12n
|
.TP 12n
|
||||||
|
@@ -96,7 +96,6 @@ or
|
|||||||
.Ev EDITOR
|
.Ev EDITOR
|
||||||
environment variable if possible, or the first editor in the
|
environment variable if possible, or the first editor in the
|
||||||
list that exists and is executable.
|
list that exists and is executable.
|
||||||
Note that
|
|
||||||
.Nm sudo
|
.Nm sudo
|
||||||
does not preserve the
|
does not preserve the
|
||||||
.Ev SUDO_EDITOR ,
|
.Ev SUDO_EDITOR ,
|
||||||
@@ -124,7 +123,6 @@ will use the value of the
|
|||||||
or
|
or
|
||||||
.Ev EDITOR
|
.Ev EDITOR
|
||||||
environment variables before falling back on the default editor list.
|
environment variables before falling back on the default editor list.
|
||||||
Note that
|
|
||||||
.Nm visudo
|
.Nm visudo
|
||||||
is typically run as root so this option may allow a user with
|
is typically run as root so this option may allow a user with
|
||||||
.Nm visudo
|
.Nm visudo
|
||||||
@@ -246,9 +244,9 @@ If an alias is referenced but not actually defined
|
|||||||
or if there is a cycle in an alias,
|
or if there is a cycle in an alias,
|
||||||
.Nm
|
.Nm
|
||||||
will consider this a syntax error.
|
will consider this a syntax error.
|
||||||
Note that it is not possible to differentiate between an
|
It is not possible to differentiate between an alias and a host
|
||||||
alias and a host name or user name that consists solely of uppercase
|
name or user name that consists solely of uppercase letters, digits,
|
||||||
letters, digits, and the underscore
|
and the underscore
|
||||||
.Pq Ql _
|
.Pq Ql _
|
||||||
character.
|
character.
|
||||||
.It Fl V , -version
|
.It Fl V , -version
|
||||||
|
@@ -57,9 +57,8 @@
|
|||||||
#tls_key = /etc/ssl/sudo/private/logsrvd_key.pem
|
#tls_key = /etc/ssl/sudo/private/logsrvd_key.pem
|
||||||
|
|
||||||
# TLS cipher list (see "CIPHER LIST FORMAT" in the openssl-ciphers manual).
|
# TLS cipher list (see "CIPHER LIST FORMAT" in the openssl-ciphers manual).
|
||||||
# NOTE that this setting is only effective if the negotiated protocol
|
# This setting is only effective if the negotiated protocol is TLS version
|
||||||
# is TLS version 1.2.
|
# 1.2. The default cipher list is HIGH:!aNULL.
|
||||||
# The default cipher list is HIGH:!aNULL.
|
|
||||||
#tls_ciphers_v12 = HIGH:!aNULL
|
#tls_ciphers_v12 = HIGH:!aNULL
|
||||||
|
|
||||||
# TLS cipher list if the negotiated protocol is TLS version 1.3.
|
# TLS cipher list if the negotiated protocol is TLS version 1.3.
|
||||||
@@ -129,9 +128,8 @@
|
|||||||
#tls_key = /etc/ssl/sudo/private/logsrvd_key.pem
|
#tls_key = /etc/ssl/sudo/private/logsrvd_key.pem
|
||||||
|
|
||||||
# TLS cipher list (see "CIPHER LIST FORMAT" in the openssl-ciphers manual).
|
# TLS cipher list (see "CIPHER LIST FORMAT" in the openssl-ciphers manual).
|
||||||
# NOTE that this setting is only effective if the negotiated protocol
|
# this setting is only effective if the negotiated protocol is TLS version
|
||||||
# is TLS version 1.2.
|
# 1.2. The default is to use the value in the [server] section.
|
||||||
# The default is to use the value in the [server] section.
|
|
||||||
#tls_ciphers_v12 = HIGH:!aNULL
|
#tls_ciphers_v12 = HIGH:!aNULL
|
||||||
|
|
||||||
# TLS cipher list if the negotiated protocol is TLS version 1.3.
|
# TLS cipher list if the negotiated protocol is TLS version 1.3.
|
||||||
@@ -148,7 +146,7 @@
|
|||||||
#iolog_dir = @iolog_dir@
|
#iolog_dir = @iolog_dir@
|
||||||
|
|
||||||
# The path name, relative to iolog_dir, in which to store I/O logs.
|
# The path name, relative to iolog_dir, in which to store I/O logs.
|
||||||
# Note that iolog_file may contain directory components.
|
# It is possible for iolog_file to contain directory components.
|
||||||
#iolog_file = %{seq}
|
#iolog_file = %{seq}
|
||||||
|
|
||||||
# If set, I/O logs will be compressed using zlib. Enabling compression can
|
# If set, I/O logs will be compressed using zlib. Enabling compression can
|
||||||
|
Reference in New Issue
Block a user