mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-28 12:57:50 +00:00
regen
This commit is contained in:
parent
143691e6d7
commit
c0773d037a
236
sudo.cat
236
sudo.cat
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
SUDO(8) MAINTENANCE COMMANDS SUDO(8)
|
SUDO(1m) MAINTENANCE COMMANDS SUDO(1m)
|
||||||
|
|
||||||
|
|
||||||
NNAAMMEE
|
NNAAMMEE
|
||||||
@ -10,13 +10,13 @@ NNAAMMEE
|
|||||||
SSYYNNOOPPSSIISS
|
SSYYNNOOPPSSIISS
|
||||||
ssuuddoo --hh | --KK | --kk | --LL | --VV | --vv
|
ssuuddoo --hh | --KK | --kk | --LL | --VV | --vv
|
||||||
|
|
||||||
ssuuddoo --ll[[ll]] [--gg _g_r_o_u_p_n_a_m_e|_#_g_i_d] [--UU _u_s_e_r_n_a_m_e] [--uu _u_s_e_r_n_a_m_e|_#_u_i_d] [_c_o_m_-
|
ssuuddoo --ll[[ll]] [--AASS] [--gg _g_r_o_u_p_n_a_m_e|_#_g_i_d] [--UU _u_s_e_r_n_a_m_e] [--uu _u_s_e_r_n_a_m_e|_#_u_i_d]
|
||||||
_m_a_n_d]
|
[_c_o_m_m_a_n_d]
|
||||||
|
|
||||||
ssuuddoo [--bbEEHHPPSS] [--aa _a_u_t_h___t_y_p_e] [--CC _f_d] [--cc _c_l_a_s_s|_-] [--gg _g_r_o_u_p_n_a_m_e|_#_g_i_d]
|
ssuuddoo [--AAbbEEHHPPSS] [--aa _a_u_t_h___t_y_p_e] [--CC _f_d] [--cc _c_l_a_s_s|_-] [--gg _g_r_o_u_p_n_a_m_e|_#_g_i_d]
|
||||||
[--pp _p_r_o_m_p_t] [--uu _u_s_e_r_n_a_m_e|_#_u_i_d] [VVAARR=_v_a_l_u_e] [{--ii | --ss] [<_c_o_m_m_a_n_d}]
|
[--pp _p_r_o_m_p_t] [--uu _u_s_e_r_n_a_m_e|_#_u_i_d] [VVAARR=_v_a_l_u_e] [{--ii | --ss] [<_c_o_m_m_a_n_d}]
|
||||||
|
|
||||||
ssuuddooeeddiitt [--SS] [--aa _a_u_t_h___t_y_p_e] [--CC _f_d] [--cc _c_l_a_s_s|_-] [--gg _g_r_o_u_p_n_a_m_e|_#_g_i_d]
|
ssuuddooeeddiitt [--AASS] [--aa _a_u_t_h___t_y_p_e] [--CC _f_d] [--cc _c_l_a_s_s|_-] [--gg _g_r_o_u_p_n_a_m_e|_#_g_i_d]
|
||||||
[--pp _p_r_o_m_p_t] [--uu _u_s_e_r_n_a_m_e|_#_u_i_d] file ...
|
[--pp _p_r_o_m_p_t] [--uu _u_s_e_r_n_a_m_e|_#_u_i_d] file ...
|
||||||
|
|
||||||
DDEESSCCRRIIPPTTIIOONN
|
DDEESSCCRRIIPPTTIIOONN
|
||||||
@ -61,13 +61,13 @@ DDEESSCCRRIIPPTTIIOONN
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
1.7 February 18, 2008 1
|
1.7 March 2, 2008 1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SUDO(8) MAINTENANCE COMMANDS SUDO(8)
|
SUDO(1m) MAINTENANCE COMMANDS SUDO(1m)
|
||||||
|
|
||||||
|
|
||||||
via _s_y_s_l_o_g(3) but this is changeable at configure time or via the _s_u_d_o_-
|
via _s_y_s_l_o_g(3) but this is changeable at configure time or via the _s_u_d_o_-
|
||||||
@ -76,6 +76,14 @@ SUDO(8) MAINTENANCE COMMANDS SUDO(8)
|
|||||||
OOPPTTIIOONNSS
|
OOPPTTIIOONNSS
|
||||||
ssuuddoo accepts the following command line options:
|
ssuuddoo accepts the following command line options:
|
||||||
|
|
||||||
|
-A Normally, if ssuuddoo requires a password, it will read it from
|
||||||
|
the current terminal. If the --AA (_a_s_k_p_a_s_s) option is speci-
|
||||||
|
fied, a helper program is executed to read the user's pass-
|
||||||
|
word and output the password to the standard output. If
|
||||||
|
the SUDO_ASKPASS environment variable is set, it specifies
|
||||||
|
the path to the helper program. Otherwise, the value spec-
|
||||||
|
ified by the _a_s_k_p_a_s_s option in _s_u_d_o_e_r_s(4) is used.
|
||||||
|
|
||||||
-a _t_y_p_e The --aa (_a_u_t_h_e_n_t_i_c_a_t_i_o_n _t_y_p_e) option causes ssuuddoo to use the
|
-a _t_y_p_e The --aa (_a_u_t_h_e_n_t_i_c_a_t_i_o_n _t_y_p_e) option causes ssuuddoo to use the
|
||||||
specified authentication type when validating the user, as
|
specified authentication type when validating the user, as
|
||||||
allowed by _/_e_t_c_/_l_o_g_i_n_._c_o_n_f. The system administrator may
|
allowed by _/_e_t_c_/_l_o_g_i_n_._c_o_n_f. The system administrator may
|
||||||
@ -94,7 +102,7 @@ OOPPTTIIOONNSS
|
|||||||
starting point above the standard error (file descriptor
|
starting point above the standard error (file descriptor
|
||||||
three). Values less than three are not permitted. This
|
three). Values less than three are not permitted. This
|
||||||
option is only available if the administrator has enabled
|
option is only available if the administrator has enabled
|
||||||
the _c_l_o_s_e_f_r_o_m___o_v_e_r_r_i_d_e option in _s_u_d_o_e_r_s(5).
|
the _c_l_o_s_e_f_r_o_m___o_v_e_r_r_i_d_e option in _s_u_d_o_e_r_s(4).
|
||||||
|
|
||||||
-c _c_l_a_s_s The --cc (_c_l_a_s_s) option causes ssuuddoo to run the specified com-
|
-c _c_l_a_s_s The --cc (_c_l_a_s_s) option causes ssuuddoo to run the specified com-
|
||||||
mand with resources limited by the specified login class.
|
mand with resources limited by the specified login class.
|
||||||
@ -109,14 +117,26 @@ OOPPTTIIOONNSS
|
|||||||
login classes.
|
login classes.
|
||||||
|
|
||||||
-E The --EE (_p_r_e_s_e_r_v_e _e_n_v_i_r_o_n_m_e_n_t) option will override the
|
-E The --EE (_p_r_e_s_e_r_v_e _e_n_v_i_r_o_n_m_e_n_t) option will override the
|
||||||
_e_n_v___r_e_s_e_t option in _s_u_d_o_e_r_s(5)). It is only available when
|
_e_n_v___r_e_s_e_t option in _s_u_d_o_e_r_s(4)). It is only available when
|
||||||
either the matching command has the SETENV tag or the
|
either the matching command has the SETENV tag or the
|
||||||
_s_e_t_e_n_v option is set in _s_u_d_o_e_r_s(5).
|
_s_e_t_e_n_v option is set in _s_u_d_o_e_r_s(4).
|
||||||
|
|
||||||
-e The --ee (_e_d_i_t) option indicates that, instead of running a
|
-e The --ee (_e_d_i_t) option indicates that, instead of running a
|
||||||
command, the user wishes to edit one or more files. In
|
command, the user wishes to edit one or more files. In
|
||||||
lieu of a command, the string "sudoedit" is used when con-
|
lieu of a command, the string "sudoedit" is used when
|
||||||
sulting the _s_u_d_o_e_r_s file. If the user is authorized by
|
|
||||||
|
|
||||||
|
|
||||||
|
1.7 March 2, 2008 2
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
SUDO(1m) MAINTENANCE COMMANDS SUDO(1m)
|
||||||
|
|
||||||
|
|
||||||
|
consulting the _s_u_d_o_e_r_s file. If the user is authorized by
|
||||||
_s_u_d_o_e_r_s the following steps are taken:
|
_s_u_d_o_e_r_s the following steps are taken:
|
||||||
|
|
||||||
1. Temporary copies are made of the files to be edited
|
1. Temporary copies are made of the files to be edited
|
||||||
@ -124,18 +144,6 @@ OOPPTTIIOONNSS
|
|||||||
|
|
||||||
2. The editor specified by the VISUAL or EDITOR environ-
|
2. The editor specified by the VISUAL or EDITOR environ-
|
||||||
ment variables is run to edit the temporary files. If
|
ment variables is run to edit the temporary files. If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
1.7 February 18, 2008 2
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SUDO(8) MAINTENANCE COMMANDS SUDO(8)
|
|
||||||
|
|
||||||
|
|
||||||
neither VISUAL nor EDITOR are set, the program listed
|
neither VISUAL nor EDITOR are set, the program listed
|
||||||
in the _e_d_i_t_o_r _s_u_d_o_e_r_s variable is used.
|
in the _e_d_i_t_o_r _s_u_d_o_e_r_s variable is used.
|
||||||
|
|
||||||
@ -163,15 +171,15 @@ SUDO(8) MAINTENANCE COMMANDS SUDO(8)
|
|||||||
|
|
||||||
-H The --HH (_H_O_M_E) option sets the HOME environment variable to
|
-H The --HH (_H_O_M_E) option sets the HOME environment variable to
|
||||||
the homedir of the target user (root by default) as speci-
|
the homedir of the target user (root by default) as speci-
|
||||||
fied in _p_a_s_s_w_d(5). By default, ssuuddoo does not modify HOME
|
fied in _p_a_s_s_w_d(4). By default, ssuuddoo does not modify HOME
|
||||||
(see _s_e_t___h_o_m_e and _a_l_w_a_y_s___s_e_t___h_o_m_e in _s_u_d_o_e_r_s(5)).
|
(see _s_e_t___h_o_m_e and _a_l_w_a_y_s___s_e_t___h_o_m_e in _s_u_d_o_e_r_s(4)).
|
||||||
|
|
||||||
-h The --hh (_h_e_l_p) option causes ssuuddoo to print a usage message
|
-h The --hh (_h_e_l_p) option causes ssuuddoo to print a usage message
|
||||||
and exit.
|
and exit.
|
||||||
|
|
||||||
-i [command]
|
-i [command]
|
||||||
The --ii (_s_i_m_u_l_a_t_e _i_n_i_t_i_a_l _l_o_g_i_n) option runs the shell spec-
|
The --ii (_s_i_m_u_l_a_t_e _i_n_i_t_i_a_l _l_o_g_i_n) option runs the shell spec-
|
||||||
ified in the _p_a_s_s_w_d(5) entry of the target user as a login
|
ified in the _p_a_s_s_w_d(4) entry of the target user as a login
|
||||||
shell. This means that login-specific resource files such
|
shell. This means that login-specific resource files such
|
||||||
as .profile or .login will be read by the shell. If a com-
|
as .profile or .login will be read by the shell. If a com-
|
||||||
mand is specified, it is passed to the shell for execution.
|
mand is specified, it is passed to the shell for execution.
|
||||||
@ -183,6 +191,17 @@ SUDO(8) MAINTENANCE COMMANDS SUDO(8)
|
|||||||
on Linux and AIX systems. All other environment variables
|
on Linux and AIX systems. All other environment variables
|
||||||
are removed.
|
are removed.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
1.7 March 2, 2008 3
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
SUDO(1m) MAINTENANCE COMMANDS SUDO(1m)
|
||||||
|
|
||||||
|
|
||||||
-K The --KK (sure _k_i_l_l) option is like --kk except that it removes
|
-K The --KK (sure _k_i_l_l) option is like --kk except that it removes
|
||||||
the user's timestamp entirely. Like --kk, this option does
|
the user's timestamp entirely. Like --kk, this option does
|
||||||
not require a password.
|
not require a password.
|
||||||
@ -190,18 +209,6 @@ SUDO(8) MAINTENANCE COMMANDS SUDO(8)
|
|||||||
-k The --kk (_k_i_l_l) option to ssuuddoo invalidates the user's times-
|
-k The --kk (_k_i_l_l) option to ssuuddoo invalidates the user's times-
|
||||||
tamp by setting the time on it to the Epoch. The next time
|
tamp by setting the time on it to the Epoch. The next time
|
||||||
ssuuddoo is run a password will be required. This option does
|
ssuuddoo is run a password will be required. This option does
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
1.7 February 18, 2008 3
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SUDO(8) MAINTENANCE COMMANDS SUDO(8)
|
|
||||||
|
|
||||||
|
|
||||||
not require a password and was added to allow a user to
|
not require a password and was added to allow a user to
|
||||||
revoke ssuuddoo permissions from a .logout file.
|
revoke ssuuddoo permissions from a .logout file.
|
||||||
|
|
||||||
@ -250,6 +257,17 @@ SUDO(8) MAINTENANCE COMMANDS SUDO(8)
|
|||||||
%% two consecutive % characters are collapsed into a sin-
|
%% two consecutive % characters are collapsed into a sin-
|
||||||
gle % character
|
gle % character
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
1.7 March 2, 2008 4
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
SUDO(1m) MAINTENANCE COMMANDS SUDO(1m)
|
||||||
|
|
||||||
|
|
||||||
The prompt specified by the --pp option will override the
|
The prompt specified by the --pp option will override the
|
||||||
system password prompt on systems that support PAM unless
|
system password prompt on systems that support PAM unless
|
||||||
the _p_a_s_s_p_r_o_m_p_t___o_v_e_r_r_i_d_e flag is disabled in _s_u_d_o_e_r_s.
|
the _p_a_s_s_p_r_o_m_p_t___o_v_e_r_r_i_d_e flag is disabled in _s_u_d_o_e_r_s.
|
||||||
@ -257,21 +275,10 @@ SUDO(8) MAINTENANCE COMMANDS SUDO(8)
|
|||||||
-S The --SS (_s_t_d_i_n) option causes ssuuddoo to read the password from
|
-S The --SS (_s_t_d_i_n) option causes ssuuddoo to read the password from
|
||||||
the standard input instead of the terminal device.
|
the standard input instead of the terminal device.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
1.7 February 18, 2008 4
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SUDO(8) MAINTENANCE COMMANDS SUDO(8)
|
|
||||||
|
|
||||||
|
|
||||||
-s [command]
|
-s [command]
|
||||||
The --ss (_s_h_e_l_l) option runs the shell specified by the _S_H_E_L_L
|
The --ss (_s_h_e_l_l) option runs the shell specified by the _S_H_E_L_L
|
||||||
environment variable if it is set or the shell as specified
|
environment variable if it is set or the shell as specified
|
||||||
in _p_a_s_s_w_d(5). If a command is specified, it is passed to
|
in _p_a_s_s_w_d(4). If a command is specified, it is passed to
|
||||||
the shell for execution. Otherwise, an interactive shell
|
the shell for execution. Otherwise, an interactive shell
|
||||||
is executed.
|
is executed.
|
||||||
|
|
||||||
@ -285,7 +292,7 @@ SUDO(8) MAINTENANCE COMMANDS SUDO(8)
|
|||||||
of a _u_s_e_r _n_a_m_e, use _#_u_i_d. When running commands as a _u_i_d,
|
of a _u_s_e_r _n_a_m_e, use _#_u_i_d. When running commands as a _u_i_d,
|
||||||
many shells require that the '#' be escaped with a back-
|
many shells require that the '#' be escaped with a back-
|
||||||
slash ('\'). Note that if the _t_a_r_g_e_t_p_w Defaults option is
|
slash ('\'). Note that if the _t_a_r_g_e_t_p_w Defaults option is
|
||||||
set (see _s_u_d_o_e_r_s(5)) it is not possible to run commands
|
set (see _s_u_d_o_e_r_s(4)) it is not possible to run commands
|
||||||
with a uid not listed in the password database.
|
with a uid not listed in the password database.
|
||||||
|
|
||||||
-V The --VV (_v_e_r_s_i_o_n) option causes ssuuddoo to print the version
|
-V The --VV (_v_e_r_s_i_o_n) option causes ssuuddoo to print the version
|
||||||
@ -311,10 +318,22 @@ SUDO(8) MAINTENANCE COMMANDS SUDO(8)
|
|||||||
ables with one important exception. If the _s_e_t_e_n_v option is set in
|
ables with one important exception. If the _s_e_t_e_n_v option is set in
|
||||||
_s_u_d_o_e_r_s, the command to be run has the SETENV tag set or the command
|
_s_u_d_o_e_r_s, the command to be run has the SETENV tag set or the command
|
||||||
matched is ALL, the user may set variables that would overwise be for-
|
matched is ALL, the user may set variables that would overwise be for-
|
||||||
bidden. See _s_u_d_o_e_r_s(5) for more information.
|
bidden. See _s_u_d_o_e_r_s(4) for more information.
|
||||||
|
|
||||||
RREETTUURRNN VVAALLUUEESS
|
RREETTUURRNN VVAALLUUEESS
|
||||||
Upon successful execution of a program, the return value from ssuuddoo will
|
Upon successful execution of a program, the return value from ssuuddoo will
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
1.7 March 2, 2008 5
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
SUDO(1m) MAINTENANCE COMMANDS SUDO(1m)
|
||||||
|
|
||||||
|
|
||||||
simply be the return value of the program that was executed.
|
simply be the return value of the program that was executed.
|
||||||
|
|
||||||
Otherwise, ssuuddoo quits with an exit value of 1 if there is a configura-
|
Otherwise, ssuuddoo quits with an exit value of 1 if there is a configura-
|
||||||
@ -322,18 +341,6 @@ RREETTUURRNN VVAALLUUEESS
|
|||||||
In the latter case the error string is printed to stderr. If ssuuddoo can-
|
In the latter case the error string is printed to stderr. If ssuuddoo can-
|
||||||
not _s_t_a_t(2) one or more entries in the user's PATH an error is printed
|
not _s_t_a_t(2) one or more entries in the user's PATH an error is printed
|
||||||
on stderr. (If the directory does not exist or if it is not really a
|
on stderr. (If the directory does not exist or if it is not really a
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
1.7 February 18, 2008 5
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SUDO(8) MAINTENANCE COMMANDS SUDO(8)
|
|
||||||
|
|
||||||
|
|
||||||
directory, the entry is ignored and no error is printed.) This should
|
directory, the entry is ignored and no error is printed.) This should
|
||||||
not happen under normal circumstances. The most common reason for
|
not happen under normal circumstances. The most common reason for
|
||||||
_s_t_a_t(2) to return "permission denied" is if you are running an auto-
|
_s_t_a_t(2) to return "permission denied" is if you are running an auto-
|
||||||
@ -381,6 +388,18 @@ SSEECCUURRIITTYY NNOOTTEESS
|
|||||||
root or if it is writable by a user other than root. On systems that
|
root or if it is writable by a user other than root. On systems that
|
||||||
allow non-root users to give away files via _c_h_o_w_n(2), if the timestamp
|
allow non-root users to give away files via _c_h_o_w_n(2), if the timestamp
|
||||||
directory is located in a directory writable by anyone (e.g., _/_t_m_p), it
|
directory is located in a directory writable by anyone (e.g., _/_t_m_p), it
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
1.7 March 2, 2008 6
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
SUDO(1m) MAINTENANCE COMMANDS SUDO(1m)
|
||||||
|
|
||||||
|
|
||||||
is possible for a user to create the timestamp directory before ssuuddoo is
|
is possible for a user to create the timestamp directory before ssuuddoo is
|
||||||
run. However, because ssuuddoo checks the ownership and mode of the direc-
|
run. However, because ssuuddoo checks the ownership and mode of the direc-
|
||||||
tory and its contents, the only damage that can be done is to "hide"
|
tory and its contents, the only damage that can be done is to "hide"
|
||||||
@ -388,18 +407,6 @@ SSEECCUURRIITTYY NNOOTTEESS
|
|||||||
since once the timestamp dir is owned by root and inaccessible by any
|
since once the timestamp dir is owned by root and inaccessible by any
|
||||||
other user, the user placing files there would be unable to get them
|
other user, the user placing files there would be unable to get them
|
||||||
back out. To get around this issue you can use a directory that is not
|
back out. To get around this issue you can use a directory that is not
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
1.7 February 18, 2008 6
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SUDO(8) MAINTENANCE COMMANDS SUDO(8)
|
|
||||||
|
|
||||||
|
|
||||||
world-writable for the timestamps (_/_v_a_r_/_a_d_m_/_s_u_d_o for instance) or cre-
|
world-writable for the timestamps (_/_v_a_r_/_a_d_m_/_s_u_d_o for instance) or cre-
|
||||||
ate _/_v_a_r_/_r_u_n_/_s_u_d_o with the appropriate owner (root) and permissions
|
ate _/_v_a_r_/_r_u_n_/_s_u_d_o with the appropriate owner (root) and permissions
|
||||||
(0700) in the system startup files.
|
(0700) in the system startup files.
|
||||||
@ -418,7 +425,7 @@ SUDO(8) MAINTENANCE COMMANDS SUDO(8)
|
|||||||
when giving users access to commands via ssuuddoo to verify that the com-
|
when giving users access to commands via ssuuddoo to verify that the com-
|
||||||
mand does not inadvertently give the user an effective root shell. For
|
mand does not inadvertently give the user an effective root shell. For
|
||||||
more information, please see the PREVENTING SHELL ESCAPES section in
|
more information, please see the PREVENTING SHELL ESCAPES section in
|
||||||
_s_u_d_o_e_r_s(5).
|
_s_u_d_o_e_r_s(4).
|
||||||
|
|
||||||
EENNVVIIRROONNMMEENNTT
|
EENNVVIIRROONNMMEENNTT
|
||||||
ssuuddoo utilizes the following environment variables:
|
ssuuddoo utilizes the following environment variables:
|
||||||
@ -435,6 +442,10 @@ EENNVVIIRROONNMMEENNTT
|
|||||||
|
|
||||||
SHELL Used to determine shell to run with -s option
|
SHELL Used to determine shell to run with -s option
|
||||||
|
|
||||||
|
SUDO_ASKPASS Specifies the path to a helper program used to read the
|
||||||
|
password if no terminal is available or if the -A
|
||||||
|
option is specified.
|
||||||
|
|
||||||
SUDO_PROMPT Used as the default password prompt
|
SUDO_PROMPT Used as the default password prompt
|
||||||
|
|
||||||
SUDO_COMMAND Set to the command run by sudo
|
SUDO_COMMAND Set to the command run by sudo
|
||||||
@ -443,6 +454,18 @@ EENNVVIIRROONNMMEENNTT
|
|||||||
|
|
||||||
SUDO_UID Set to the uid of the user who invoked sudo
|
SUDO_UID Set to the uid of the user who invoked sudo
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
1.7 March 2, 2008 7
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
SUDO(1m) MAINTENANCE COMMANDS SUDO(1m)
|
||||||
|
|
||||||
|
|
||||||
SUDO_GID Set to the gid of the user who invoked sudo
|
SUDO_GID Set to the gid of the user who invoked sudo
|
||||||
|
|
||||||
SUDO_PS1 If set, PS1 will be set to its value
|
SUDO_PS1 If set, PS1 will be set to its value
|
||||||
@ -455,24 +478,13 @@ EENNVVIIRROONNMMEENNTT
|
|||||||
FFIILLEESS
|
FFIILLEESS
|
||||||
_/_e_t_c_/_s_u_d_o_e_r_s List of who can run what
|
_/_e_t_c_/_s_u_d_o_e_r_s List of who can run what
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
1.7 February 18, 2008 7
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SUDO(8) MAINTENANCE COMMANDS SUDO(8)
|
|
||||||
|
|
||||||
|
|
||||||
_/_v_a_r_/_r_u_n_/_s_u_d_o Directory containing timestamps
|
_/_v_a_r_/_r_u_n_/_s_u_d_o Directory containing timestamps
|
||||||
|
|
||||||
_/_e_t_c_/_e_n_v_i_r_o_n_m_e_n_t Initial environment for --ii mode on Linux and
|
_/_e_t_c_/_e_n_v_i_r_o_n_m_e_n_t Initial environment for --ii mode on Linux and
|
||||||
AIX
|
AIX
|
||||||
|
|
||||||
EEXXAAMMPPLLEESS
|
EEXXAAMMPPLLEESS
|
||||||
Note: the following examples assume suitable _s_u_d_o_e_r_s(5) entries.
|
Note: the following examples assume suitable _s_u_d_o_e_r_s(4) entries.
|
||||||
|
|
||||||
To get a file listing of an unreadable directory:
|
To get a file listing of an unreadable directory:
|
||||||
|
|
||||||
@ -498,7 +510,8 @@ EEXXAAMMPPLLEESS
|
|||||||
$ sudo sh -c "cd /home ; du -s * | sort -rn > USAGE"
|
$ sudo sh -c "cd /home ; du -s * | sort -rn > USAGE"
|
||||||
|
|
||||||
SSEEEE AALLSSOO
|
SSEEEE AALLSSOO
|
||||||
_g_r_e_p(1), _s_u(1), _s_t_a_t(2), _l_o_g_i_n___c_a_p(3), _p_a_s_s_w_d(5), _s_u_d_o_e_r_s(5), _v_i_s_u_d_o(8)
|
_g_r_e_p(1), _s_u(1), _s_t_a_t(2), _l_o_g_i_n___c_a_p(3), _p_a_s_s_w_d(4), _s_u_d_o_e_r_s(5),
|
||||||
|
_v_i_s_u_d_o(1m)
|
||||||
|
|
||||||
AAUUTTHHOORRSS
|
AAUUTTHHOORRSS
|
||||||
Many people have worked on ssuuddoo over the years; this version consists
|
Many people have worked on ssuuddoo over the years; this version consists
|
||||||
@ -507,6 +520,18 @@ AAUUTTHHOORRSS
|
|||||||
Todd C. Miller
|
Todd C. Miller
|
||||||
|
|
||||||
See the HISTORY file in the ssuuddoo distribution or visit
|
See the HISTORY file in the ssuuddoo distribution or visit
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
1.7 March 2, 2008 8
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
SUDO(1m) MAINTENANCE COMMANDS SUDO(1m)
|
||||||
|
|
||||||
|
|
||||||
http://www.sudo.ws/sudo/history.html for a short history of ssuuddoo.
|
http://www.sudo.ws/sudo/history.html for a short history of ssuuddoo.
|
||||||
|
|
||||||
CCAAVVEEAATTSS
|
CCAAVVEEAATTSS
|
||||||
@ -515,23 +540,12 @@ CCAAVVEEAATTSS
|
|||||||
programs (such as editors) allow the user to run commands via shell
|
programs (such as editors) allow the user to run commands via shell
|
||||||
escapes, thus avoiding ssuuddoo's checks. However, on most systems it is
|
escapes, thus avoiding ssuuddoo's checks. However, on most systems it is
|
||||||
possible to prevent shell escapes with ssuuddoo's _n_o_e_x_e_c functionality.
|
possible to prevent shell escapes with ssuuddoo's _n_o_e_x_e_c functionality.
|
||||||
See the _s_u_d_o_e_r_s(5) manual for details.
|
See the _s_u_d_o_e_r_s(4) manual for details.
|
||||||
|
|
||||||
It is not meaningful to run the cd command directly via sudo, e.g.,
|
It is not meaningful to run the cd command directly via sudo, e.g.,
|
||||||
|
|
||||||
$ sudo cd /usr/local/protected
|
$ sudo cd /usr/local/protected
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
1.7 February 18, 2008 8
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SUDO(8) MAINTENANCE COMMANDS SUDO(8)
|
|
||||||
|
|
||||||
|
|
||||||
since when the command exits the parent process (your shell) will still
|
since when the command exits the parent process (your shell) will still
|
||||||
be the same. Please see the EXAMPLES section for more information.
|
be the same. Please see the EXAMPLES section for more information.
|
||||||
|
|
||||||
@ -575,20 +589,6 @@ DDIISSCCLLAAIIMMEERR
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
1.7 March 2, 2008 9
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
1.7 February 18, 2008 9
|
|
||||||
|
|
||||||
|
|
||||||
|
27
sudo.man.in
27
sudo.man.in
@ -150,17 +150,17 @@
|
|||||||
.\" ========================================================================
|
.\" ========================================================================
|
||||||
.\"
|
.\"
|
||||||
.IX Title "SUDO @mansectsu@"
|
.IX Title "SUDO @mansectsu@"
|
||||||
.TH SUDO @mansectsu@ "February 18, 2008" "1.7" "MAINTENANCE COMMANDS"
|
.TH SUDO @mansectsu@ "March 2, 2008" "1.7" "MAINTENANCE COMMANDS"
|
||||||
.SH "NAME"
|
.SH "NAME"
|
||||||
sudo, sudoedit \- execute a command as another user
|
sudo, sudoedit \- execute a command as another user
|
||||||
.SH "SYNOPSIS"
|
.SH "SYNOPSIS"
|
||||||
.IX Header "SYNOPSIS"
|
.IX Header "SYNOPSIS"
|
||||||
\&\fBsudo\fR \fB\-h\fR | \fB\-K\fR | \fB\-k\fR | \fB\-L\fR | \fB\-V\fR | \fB\-v\fR
|
\&\fBsudo\fR \fB\-h\fR | \fB\-K\fR | \fB\-k\fR | \fB\-L\fR | \fB\-V\fR | \fB\-v\fR
|
||||||
.PP
|
.PP
|
||||||
\&\fBsudo\fR \fB\-l[l]\fR [\fB\-g\fR\ \fIgroupname\fR|\fI#gid\fR] [\fB\-U\fR\ \fIusername\fR]
|
\&\fBsudo\fR \fB\-l[l]\fR [\fB\-AS\fR] [\fB\-g\fR\ \fIgroupname\fR|\fI#gid\fR] [\fB\-U\fR\ \fIusername\fR]
|
||||||
[\fB\-u\fR\ \fIusername\fR|\fI#uid\fR] [\fIcommand\fR]
|
[\fB\-u\fR\ \fIusername\fR|\fI#uid\fR] [\fIcommand\fR]
|
||||||
.PP
|
.PP
|
||||||
\&\fBsudo\fR [\fB\-bEHPS\fR]
|
\&\fBsudo\fR [\fB\-AbEHPS\fR]
|
||||||
@BAMAN@[\fB\-a\fR\ \fIauth_type\fR]
|
@BAMAN@[\fB\-a\fR\ \fIauth_type\fR]
|
||||||
[\fB\-C\fR\ \fIfd\fR]
|
[\fB\-C\fR\ \fIfd\fR]
|
||||||
@LCMAN@[\fB\-c\fR\ \fIclass\fR|\fI\-\fR]
|
@LCMAN@[\fB\-c\fR\ \fIclass\fR|\fI\-\fR]
|
||||||
@ -169,7 +169,7 @@ sudo, sudoedit \- execute a command as another user
|
|||||||
[\fB\-u\fR\ \fIusername\fR|\fI#uid\fR]
|
[\fB\-u\fR\ \fIusername\fR|\fI#uid\fR]
|
||||||
[\fB\s-1VAR\s0\fR=\fIvalue\fR] [{\fB\-i\fR\ |\ \fB\-s\fR]\ [<\fIcommand\fR}]
|
[\fB\s-1VAR\s0\fR=\fIvalue\fR] [{\fB\-i\fR\ |\ \fB\-s\fR]\ [<\fIcommand\fR}]
|
||||||
.PP
|
.PP
|
||||||
\&\fBsudoedit\fR [\fB\-S\fR]
|
\&\fBsudoedit\fR [\fB\-AS\fR]
|
||||||
@BAMAN@[\fB\-a\fR\ \fIauth_type\fR]
|
@BAMAN@[\fB\-a\fR\ \fIauth_type\fR]
|
||||||
[\fB\-C\fR\ \fIfd\fR]
|
[\fB\-C\fR\ \fIfd\fR]
|
||||||
@LCMAN@[\fB\-c\fR\ \fIclass\fR|\fI\-\fR]
|
@LCMAN@[\fB\-c\fR\ \fIclass\fR|\fI\-\fR]
|
||||||
@ -224,6 +224,15 @@ or via the \fIsudoers\fR file.
|
|||||||
.SH "OPTIONS"
|
.SH "OPTIONS"
|
||||||
.IX Header "OPTIONS"
|
.IX Header "OPTIONS"
|
||||||
\&\fBsudo\fR accepts the following command line options:
|
\&\fBsudo\fR accepts the following command line options:
|
||||||
|
.IP "\-A" 12
|
||||||
|
.IX Item "-A"
|
||||||
|
Normally, if \fBsudo\fR requires a password, it will read it from the
|
||||||
|
current terminal. If the \fB\-A\fR (\fIaskpass\fR) option is specified,
|
||||||
|
a helper program is executed to read the user's password and output
|
||||||
|
the password to the standard output. If the \f(CW\*(C`SUDO_ASKPASS\*(C'\fR
|
||||||
|
environment variable is set, it specifies the path to the helper
|
||||||
|
program. Otherwise, the value specified by the \fIaskpass\fR option
|
||||||
|
in \fIsudoers\fR\|(@mansectform@) is used.
|
||||||
@BAMAN@.IP "\-a \fItype\fR" 12
|
@BAMAN@.IP "\-a \fItype\fR" 12
|
||||||
@BAMAN@.IX Item "-a type"
|
@BAMAN@.IX Item "-a type"
|
||||||
@BAMAN@The \fB\-a\fR (\fIauthentication type\fR) option causes \fBsudo\fR to use the
|
@BAMAN@The \fB\-a\fR (\fIauthentication type\fR) option causes \fBsudo\fR to use the
|
||||||
@ -567,6 +576,11 @@ Set to a sane value if the \fIsecure_path\fR sudoers option is set.
|
|||||||
.el .IP "\f(CW\*(C`SHELL\*(C'\fR" 16
|
.el .IP "\f(CW\*(C`SHELL\*(C'\fR" 16
|
||||||
.IX Item "SHELL"
|
.IX Item "SHELL"
|
||||||
Used to determine shell to run with \f(CW\*(C`\-s\*(C'\fR option
|
Used to determine shell to run with \f(CW\*(C`\-s\*(C'\fR option
|
||||||
|
.ie n .IP "\*(C`SUDO_ASKPASS\*(C'" 16
|
||||||
|
.el .IP "\f(CW\*(C`SUDO_ASKPASS\*(C'\fR" 16
|
||||||
|
.IX Item "SUDO_ASKPASS"
|
||||||
|
Specifies the path to a helper program used to read the password
|
||||||
|
if no terminal is available or if the \f(CW\*(C`\-A\*(C'\fR option is specified.
|
||||||
.ie n .IP "\*(C`SUDO_PROMPT\*(C'" 16
|
.ie n .IP "\*(C`SUDO_PROMPT\*(C'" 16
|
||||||
.el .IP "\f(CW\*(C`SUDO_PROMPT\*(C'\fR" 16
|
.el .IP "\f(CW\*(C`SUDO_PROMPT\*(C'\fR" 16
|
||||||
.IX Item "SUDO_PROMPT"
|
.IX Item "SUDO_PROMPT"
|
||||||
@ -648,8 +662,9 @@ to make the \f(CW\*(C`cd\*(C'\fR and file redirection work.
|
|||||||
.Ve
|
.Ve
|
||||||
.SH "SEE ALSO"
|
.SH "SEE ALSO"
|
||||||
.IX Header "SEE ALSO"
|
.IX Header "SEE ALSO"
|
||||||
\&\fIgrep\fR\|(1), \fIsu\fR\|(1), \fIstat\fR\|(2), \fIlogin_cap\fR\|(3), \fIpasswd\fR\|(@mansectform@),
|
\&\fIgrep\fR\|(1), \fIsu\fR\|(1), \fIstat\fR\|(2),
|
||||||
\&\fIsudoers\fR\|(@mansectform@), \fIvisudo\fR\|(@mansectsu@)
|
@LCMAN@\&\fIlogin_cap\fR\|(3),
|
||||||
|
\&\fIpasswd\fR\|(@mansectform@), \fIsudoers\fR\|(5), \fIvisudo\fR\|(@mansectsu@)
|
||||||
.SH "AUTHORS"
|
.SH "AUTHORS"
|
||||||
.IX Header "AUTHORS"
|
.IX Header "AUTHORS"
|
||||||
Many people have worked on \fBsudo\fR over the years; this
|
Many people have worked on \fBsudo\fR over the years; this
|
||||||
|
278
sudoers.cat
278
sudoers.cat
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
SUDOERS(5) MAINTENANCE COMMANDS SUDOERS(5)
|
SUDOERS(4) MAINTENANCE COMMANDS SUDOERS(4)
|
||||||
|
|
||||||
|
|
||||||
NNAAMMEE
|
NNAAMMEE
|
||||||
@ -61,13 +61,13 @@ DDEESSCCRRIIPPTTIIOONN
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
1.7 February 18, 2008 1
|
1.7 March 2, 2008 1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SUDOERS(5) MAINTENANCE COMMANDS SUDOERS(5)
|
SUDOERS(4) MAINTENANCE COMMANDS SUDOERS(4)
|
||||||
|
|
||||||
|
|
||||||
Host_Alias ::= NAME '=' Host_List
|
Host_Alias ::= NAME '=' Host_List
|
||||||
@ -127,13 +127,13 @@ SUDOERS(5) MAINTENANCE COMMANDS SUDOERS(5)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
1.7 February 18, 2008 2
|
1.7 March 2, 2008 2
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SUDOERS(5) MAINTENANCE COMMANDS SUDOERS(5)
|
SUDOERS(4) MAINTENANCE COMMANDS SUDOERS(4)
|
||||||
|
|
||||||
|
|
||||||
Host ::= '!'* hostname |
|
Host ::= '!'* hostname |
|
||||||
@ -193,13 +193,13 @@ SUDOERS(5) MAINTENANCE COMMANDS SUDOERS(5)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
1.7 February 18, 2008 3
|
1.7 March 2, 2008 3
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SUDOERS(5) MAINTENANCE COMMANDS SUDOERS(5)
|
SUDOERS(4) MAINTENANCE COMMANDS SUDOERS(4)
|
||||||
|
|
||||||
|
|
||||||
users on any host, all users on a specific host, a specific user, a
|
users on any host, all users on a specific host, a specific user, a
|
||||||
@ -259,13 +259,13 @@ SUDOERS(5) MAINTENANCE COMMANDS SUDOERS(5)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
1.7 February 18, 2008 4
|
1.7 March 2, 2008 4
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SUDOERS(5) MAINTENANCE COMMANDS SUDOERS(5)
|
SUDOERS(4) MAINTENANCE COMMANDS SUDOERS(4)
|
||||||
|
|
||||||
|
|
||||||
Let's break that down into its constituent parts:
|
Let's break that down into its constituent parts:
|
||||||
@ -325,13 +325,13 @@ SUDOERS(5) MAINTENANCE COMMANDS SUDOERS(5)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
1.7 February 18, 2008 5
|
1.7 March 2, 2008 5
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SUDOERS(5) MAINTENANCE COMMANDS SUDOERS(5)
|
SUDOERS(4) MAINTENANCE COMMANDS SUDOERS(4)
|
||||||
|
|
||||||
|
|
||||||
Cmnd_Spec_List, inherit the tag unless it is overridden by the opposite
|
Cmnd_Spec_List, inherit the tag unless it is overridden by the opposite
|
||||||
@ -391,13 +391,13 @@ SUDOERS(5) MAINTENANCE COMMANDS SUDOERS(5)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
1.7 February 18, 2008 6
|
1.7 March 2, 2008 6
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SUDOERS(5) MAINTENANCE COMMANDS SUDOERS(5)
|
SUDOERS(4) MAINTENANCE COMMANDS SUDOERS(4)
|
||||||
|
|
||||||
|
|
||||||
WWiillddccaarrddss
|
WWiillddccaarrddss
|
||||||
@ -457,13 +457,13 @@ SUDOERS(5) MAINTENANCE COMMANDS SUDOERS(5)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
1.7 February 18, 2008 7
|
1.7 March 2, 2008 7
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SUDOERS(5) MAINTENANCE COMMANDS SUDOERS(5)
|
SUDOERS(4) MAINTENANCE COMMANDS SUDOERS(4)
|
||||||
|
|
||||||
|
|
||||||
OOtthheerr ssppeecciiaall cchhaarraacctteerrss aanndd rreesseerrvveedd wwoorrddss
|
OOtthheerr ssppeecciiaall cchhaarraacctteerrss aanndd rreesseerrvveedd wwoorrddss
|
||||||
@ -523,13 +523,13 @@ SSUUDDOOEERRSS OOPPTTIIOONNSS
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
1.7 February 18, 2008 8
|
1.7 March 2, 2008 8
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SUDOERS(5) MAINTENANCE COMMANDS SUDOERS(5)
|
SUDOERS(4) MAINTENANCE COMMANDS SUDOERS(4)
|
||||||
|
|
||||||
|
|
||||||
env_editor If set, vviissuuddoo will use the value of the EDITOR or
|
env_editor If set, vviissuuddoo will use the value of the EDITOR or
|
||||||
@ -589,13 +589,13 @@ SUDOERS(5) MAINTENANCE COMMANDS SUDOERS(5)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
1.7 February 18, 2008 9
|
1.7 March 2, 2008 9
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SUDOERS(5) MAINTENANCE COMMANDS SUDOERS(5)
|
SUDOERS(4) MAINTENANCE COMMANDS SUDOERS(4)
|
||||||
|
|
||||||
|
|
||||||
log_host If set, the hostname will be logged in the (non-syslog)
|
log_host If set, the hostname will be logged in the (non-syslog)
|
||||||
@ -655,13 +655,13 @@ SUDOERS(5) MAINTENANCE COMMANDS SUDOERS(5)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
1.7 February 18, 2008 10
|
1.7 March 2, 2008 10
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SUDOERS(5) MAINTENANCE COMMANDS SUDOERS(5)
|
SUDOERS(4) MAINTENANCE COMMANDS SUDOERS(4)
|
||||||
|
|
||||||
|
|
||||||
normally only be used if the passwod prompt provided by
|
normally only be used if the passwod prompt provided by
|
||||||
@ -721,13 +721,13 @@ SUDOERS(5) MAINTENANCE COMMANDS SUDOERS(5)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
1.7 February 18, 2008 11
|
1.7 March 2, 2008 11
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SUDOERS(5) MAINTENANCE COMMANDS SUDOERS(5)
|
SUDOERS(4) MAINTENANCE COMMANDS SUDOERS(4)
|
||||||
|
|
||||||
|
|
||||||
setenv Allow the user to disable the _e_n_v___r_e_s_e_t option from the
|
setenv Allow the user to disable the _e_n_v___r_e_s_e_t option from the
|
||||||
@ -787,13 +787,13 @@ SUDOERS(5) MAINTENANCE COMMANDS SUDOERS(5)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
1.7 February 18, 2008 12
|
1.7 March 2, 2008 12
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SUDOERS(5) MAINTENANCE COMMANDS SUDOERS(5)
|
SUDOERS(4) MAINTENANCE COMMANDS SUDOERS(4)
|
||||||
|
|
||||||
|
|
||||||
password before ssuuddoo logs the failure and exits. The
|
password before ssuuddoo logs the failure and exits. The
|
||||||
@ -853,13 +853,13 @@ SUDOERS(5) MAINTENANCE COMMANDS SUDOERS(5)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
1.7 February 18, 2008 13
|
1.7 March 2, 2008 13
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SUDOERS(5) MAINTENANCE COMMANDS SUDOERS(5)
|
SUDOERS(4) MAINTENANCE COMMANDS SUDOERS(4)
|
||||||
|
|
||||||
|
|
||||||
environment variable. The following percent (`%')
|
environment variable. The following percent (`%')
|
||||||
@ -905,6 +905,29 @@ SUDOERS(5) MAINTENANCE COMMANDS SUDOERS(5)
|
|||||||
|
|
||||||
SSttrriinnggss tthhaatt ccaann bbee uusseedd iinn aa bboooolleeaann ccoonntteexxtt:
|
SSttrriinnggss tthhaatt ccaann bbee uusseedd iinn aa bboooolleeaann ccoonntteexxtt:
|
||||||
|
|
||||||
|
askpass The _a_s_k_p_a_s_s option specifies the fully-qualilfy path to a
|
||||||
|
helper program used to read the user's password when no
|
||||||
|
terminal is available. This may be the case when ssuuddoo is
|
||||||
|
executed from a graphical (as opposed to text-based) appli-
|
||||||
|
cation. The program specified by _a_s_k_p_a_s_s should display
|
||||||
|
the argument passed to it as the prompt and write the
|
||||||
|
user's password to the standard output. The value of
|
||||||
|
_a_s_k_p_a_s_s may be overridden by the SUDO_ASKPASS environment
|
||||||
|
variable.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
1.7 March 2, 2008 14
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
SUDOERS(4) MAINTENANCE COMMANDS SUDOERS(4)
|
||||||
|
|
||||||
|
|
||||||
exempt_group
|
exempt_group
|
||||||
Users in this group are exempt from password and PATH
|
Users in this group are exempt from password and PATH
|
||||||
requirements. This is not set by default.
|
requirements. This is not set by default.
|
||||||
@ -917,17 +940,6 @@ SUDOERS(5) MAINTENANCE COMMANDS SUDOERS(5)
|
|||||||
|
|
||||||
never Never lecture the user.
|
never Never lecture the user.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
1.7 February 18, 2008 14
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SUDOERS(5) MAINTENANCE COMMANDS SUDOERS(5)
|
|
||||||
|
|
||||||
|
|
||||||
once Only lecture the user the first time they run ssuuddoo.
|
once Only lecture the user the first time they run ssuuddoo.
|
||||||
|
|
||||||
If no value is specified, a value of _o_n_c_e is implied.
|
If no value is specified, a value of _o_n_c_e is implied.
|
||||||
@ -970,6 +982,18 @@ SUDOERS(5) MAINTENANCE COMMANDS SUDOERS(5)
|
|||||||
mailerpath Path to mail program used to send warning mail. Defaults
|
mailerpath Path to mail program used to send warning mail. Defaults
|
||||||
to the path to sendmail found at configure time.
|
to the path to sendmail found at configure time.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
1.7 March 2, 2008 15
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
SUDOERS(4) MAINTENANCE COMMANDS SUDOERS(4)
|
||||||
|
|
||||||
|
|
||||||
mailto Address to send warning and error mail to. The address
|
mailto Address to send warning and error mail to. The address
|
||||||
should be enclosed in double quotes (") to protect against
|
should be enclosed in double quotes (") to protect against
|
||||||
ssuuddoo interpreting the @ sign. Defaults to root.
|
ssuuddoo interpreting the @ sign. Defaults to root.
|
||||||
@ -982,18 +1006,6 @@ SUDOERS(5) MAINTENANCE COMMANDS SUDOERS(5)
|
|||||||
option are not affected by _s_e_c_u_r_e___p_a_t_h. This is not set by
|
option are not affected by _s_e_c_u_r_e___p_a_t_h. This is not set by
|
||||||
default.
|
default.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
1.7 February 18, 2008 15
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SUDOERS(5) MAINTENANCE COMMANDS SUDOERS(5)
|
|
||||||
|
|
||||||
|
|
||||||
syslog Syslog facility if syslog is being used for logging (negate
|
syslog Syslog facility if syslog is being used for logging (negate
|
||||||
to disable syslog logging). Defaults to local2.
|
to disable syslog logging). Defaults to local2.
|
||||||
|
|
||||||
@ -1036,6 +1048,18 @@ SUDOERS(5) MAINTENANCE COMMANDS SUDOERS(5)
|
|||||||
environment variables to check is displayed when ssuuddoo
|
environment variables to check is displayed when ssuuddoo
|
||||||
is run by root with the _-_V option.
|
is run by root with the _-_V option.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
1.7 March 2, 2008 16
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
SUDOERS(4) MAINTENANCE COMMANDS SUDOERS(4)
|
||||||
|
|
||||||
|
|
||||||
env_delete Environment variables to be removed from the user's
|
env_delete Environment variables to be removed from the user's
|
||||||
environment. The argument may be a double-quoted,
|
environment. The argument may be a double-quoted,
|
||||||
space-separated list or a single value without dou-
|
space-separated list or a single value without dou-
|
||||||
@ -1048,18 +1072,6 @@ SUDOERS(5) MAINTENANCE COMMANDS SUDOERS(5)
|
|||||||
from the environment of any setuid process (such as
|
from the environment of any setuid process (such as
|
||||||
ssuuddoo).
|
ssuuddoo).
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
1.7 February 18, 2008 16
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SUDOERS(5) MAINTENANCE COMMANDS SUDOERS(5)
|
|
||||||
|
|
||||||
|
|
||||||
env_keep Environment variables to be preserved in the user's
|
env_keep Environment variables to be preserved in the user's
|
||||||
environment when the _e_n_v___r_e_s_e_t option is in effect.
|
environment when the _e_n_v___r_e_s_e_t option is in effect.
|
||||||
This allows fine-grained control over the environment
|
This allows fine-grained control over the environment
|
||||||
@ -1098,6 +1110,22 @@ EEXXAAMMPPLLEESS
|
|||||||
Runas_Alias OP = root, operator
|
Runas_Alias OP = root, operator
|
||||||
Runas_Alias DB = oracle, sybase
|
Runas_Alias DB = oracle, sybase
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
1.7 March 2, 2008 17
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
SUDOERS(4) MAINTENANCE COMMANDS SUDOERS(4)
|
||||||
|
|
||||||
|
|
||||||
# Host alias specification
|
# Host alias specification
|
||||||
Host_Alias SPARC = bigtime, eclipse, moet, anchor :\
|
Host_Alias SPARC = bigtime, eclipse, moet, anchor :\
|
||||||
SGI = grolsch, dandelion, black :\
|
SGI = grolsch, dandelion, black :\
|
||||||
@ -1108,24 +1136,6 @@ EEXXAAMMPPLLEESS
|
|||||||
Host_Alias SERVERS = master, mail, www, ns
|
Host_Alias SERVERS = master, mail, www, ns
|
||||||
Host_Alias CDROM = orion, perseus, hercules
|
Host_Alias CDROM = orion, perseus, hercules
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
1.7 February 18, 2008 17
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SUDOERS(5) MAINTENANCE COMMANDS SUDOERS(5)
|
|
||||||
|
|
||||||
|
|
||||||
# Cmnd alias specification
|
# Cmnd alias specification
|
||||||
Cmnd_Alias DUMPS = /usr/bin/mt, /usr/sbin/dump, /usr/sbin/rdump,\
|
Cmnd_Alias DUMPS = /usr/bin/mt, /usr/sbin/dump, /usr/sbin/rdump,\
|
||||||
/usr/sbin/restore, /usr/sbin/rrestore
|
/usr/sbin/restore, /usr/sbin/rrestore
|
||||||
@ -1170,6 +1180,18 @@ SUDOERS(5) MAINTENANCE COMMANDS SUDOERS(5)
|
|||||||
|
|
||||||
FULLTIMERS ALL = NOPASSWD: ALL
|
FULLTIMERS ALL = NOPASSWD: ALL
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
1.7 March 2, 2008 18
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
SUDOERS(4) MAINTENANCE COMMANDS SUDOERS(4)
|
||||||
|
|
||||||
|
|
||||||
Full time sysadmins (mmiilllleerrtt, mmiikkeeff, and ddoowwddyy) may run any command on
|
Full time sysadmins (mmiilllleerrtt, mmiikkeeff, and ddoowwddyy) may run any command on
|
||||||
any host without authenticating themselves.
|
any host without authenticating themselves.
|
||||||
|
|
||||||
@ -1181,17 +1203,6 @@ SUDOERS(5) MAINTENANCE COMMANDS SUDOERS(5)
|
|||||||
|
|
||||||
jack CSNETS = ALL
|
jack CSNETS = ALL
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
1.7 February 18, 2008 18
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SUDOERS(5) MAINTENANCE COMMANDS SUDOERS(5)
|
|
||||||
|
|
||||||
|
|
||||||
The user jjaacckk may run any command on the machines in the _C_S_N_E_T_S alias
|
The user jjaacckk may run any command on the machines in the _C_S_N_E_T_S alias
|
||||||
(the networks 128.138.243.0, 128.138.204.0, and 128.138.242.0). Of
|
(the networks 128.138.243.0, 128.138.204.0, and 128.138.242.0). Of
|
||||||
those networks, only 128.138.204.0 has an explicit netmask (in CIDR
|
those networks, only 128.138.204.0 has an explicit netmask (in CIDR
|
||||||
@ -1235,6 +1246,18 @@ SUDOERS(5) MAINTENANCE COMMANDS SUDOERS(5)
|
|||||||
|
|
||||||
Users in the sseeccrreettaarriieess netgroup need to help manage the printers as
|
Users in the sseeccrreettaarriieess netgroup need to help manage the printers as
|
||||||
well as add and remove users, so they are allowed to run those commands
|
well as add and remove users, so they are allowed to run those commands
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
1.7 March 2, 2008 19
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
SUDOERS(4) MAINTENANCE COMMANDS SUDOERS(4)
|
||||||
|
|
||||||
|
|
||||||
on all machines.
|
on all machines.
|
||||||
|
|
||||||
fred ALL = (DB) NOPASSWD: ALL
|
fred ALL = (DB) NOPASSWD: ALL
|
||||||
@ -1247,17 +1270,6 @@ SUDOERS(5) MAINTENANCE COMMANDS SUDOERS(5)
|
|||||||
On the _A_L_P_H_A machines, user jjoohhnn may su to anyone except root but he is
|
On the _A_L_P_H_A machines, user jjoohhnn may su to anyone except root but he is
|
||||||
not allowed to give _s_u(1) any flags.
|
not allowed to give _s_u(1) any flags.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
1.7 February 18, 2008 19
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SUDOERS(5) MAINTENANCE COMMANDS SUDOERS(5)
|
|
||||||
|
|
||||||
|
|
||||||
jen ALL, !SERVERS = ALL
|
jen ALL, !SERVERS = ALL
|
||||||
|
|
||||||
The user jjeenn may run any command on any machine except for those in the
|
The user jjeenn may run any command on any machine except for those in the
|
||||||
@ -1301,6 +1313,17 @@ SSEECCUURRIITTYY NNOOTTEESS
|
|||||||
|
|
||||||
bill ALL = ALL, !SU, !SHELLS
|
bill ALL = ALL, !SU, !SHELLS
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
1.7 March 2, 2008 20
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
SUDOERS(4) MAINTENANCE COMMANDS SUDOERS(4)
|
||||||
|
|
||||||
|
|
||||||
Doesn't really prevent bbiillll from running the commands listed in _S_U or
|
Doesn't really prevent bbiillll from running the commands listed in _S_U or
|
||||||
_S_H_E_L_L_S since he can simply copy those commands to a different name, or
|
_S_H_E_L_L_S since he can simply copy those commands to a different name, or
|
||||||
use a shell escape from an editor or other program. Therefore, these
|
use a shell escape from an editor or other program. Therefore, these
|
||||||
@ -1312,18 +1335,6 @@ PPRREEVVEENNTTIINNGG SSHHEELLLL EESSCCAAPPEESS
|
|||||||
pleases, including run other programs. This can be a security issue
|
pleases, including run other programs. This can be a security issue
|
||||||
since it is not uncommon for a program to allow shell escapes, which
|
since it is not uncommon for a program to allow shell escapes, which
|
||||||
lets a user bypass ssuuddoo's access control and logging. Common programs
|
lets a user bypass ssuuddoo's access control and logging. Common programs
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
1.7 February 18, 2008 20
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SUDOERS(5) MAINTENANCE COMMANDS SUDOERS(5)
|
|
||||||
|
|
||||||
|
|
||||||
that permit shell escapes include shells (obviously), editors, pagina-
|
that permit shell escapes include shells (obviously), editors, pagina-
|
||||||
tors, mail and terminal programs.
|
tors, mail and terminal programs.
|
||||||
|
|
||||||
@ -1367,6 +1378,18 @@ SUDOERS(5) MAINTENANCE COMMANDS SUDOERS(5)
|
|||||||
(usually ld.so, ld.so.1, dyld, dld.sl, rld, or loader) to see
|
(usually ld.so, ld.so.1, dyld, dld.sl, rld, or loader) to see
|
||||||
if LD_PRELOAD is supported.
|
if LD_PRELOAD is supported.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
1.7 March 2, 2008 21
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
SUDOERS(4) MAINTENANCE COMMANDS SUDOERS(4)
|
||||||
|
|
||||||
|
|
||||||
To enable _n_o_e_x_e_c for a command, use the NOEXEC tag as docu-
|
To enable _n_o_e_x_e_c for a command, use the NOEXEC tag as docu-
|
||||||
mented in the User Specification section above. Here is that
|
mented in the User Specification section above. Here is that
|
||||||
example again:
|
example again:
|
||||||
@ -1379,17 +1402,6 @@ SUDOERS(5) MAINTENANCE COMMANDS SUDOERS(5)
|
|||||||
unsure whether or not your system is capable of supporting
|
unsure whether or not your system is capable of supporting
|
||||||
_n_o_e_x_e_c you can always just try it out and see if it works.
|
_n_o_e_x_e_c you can always just try it out and see if it works.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
1.7 February 18, 2008 21
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SUDOERS(5) MAINTENANCE COMMANDS SUDOERS(5)
|
|
||||||
|
|
||||||
|
|
||||||
Note that restricting shell escapes is not a panacea. Programs running
|
Note that restricting shell escapes is not a panacea. Programs running
|
||||||
as root are still capable of many potentially hazardous operations
|
as root are still capable of many potentially hazardous operations
|
||||||
(such as changing or overwriting files) that could lead to unintended
|
(such as changing or overwriting files) that could lead to unintended
|
||||||
@ -1397,7 +1409,7 @@ SUDOERS(5) MAINTENANCE COMMANDS SUDOERS(5)
|
|||||||
approach is to give the user permission to run ssuuddooeeddiitt.
|
approach is to give the user permission to run ssuuddooeeddiitt.
|
||||||
|
|
||||||
SSEEEE AALLSSOO
|
SSEEEE AALLSSOO
|
||||||
_r_s_h(1), _s_u(1), _f_n_m_a_t_c_h(3), _s_u_d_o(8), _v_i_s_u_d_o(8)
|
_r_s_h(1), _s_u(1), _f_n_m_a_t_c_h(3), _s_u_d_o(1m), _v_i_s_u_d_o(8)
|
||||||
|
|
||||||
CCAAVVEEAATTSS
|
CCAAVVEEAATTSS
|
||||||
The _s_u_d_o_e_r_s file should aallwwaayyss be edited by the vviissuuddoo command which
|
The _s_u_d_o_e_r_s file should aallwwaayyss be edited by the vviissuuddoo command which
|
||||||
@ -1435,18 +1447,6 @@ DDIISSCCLLAAIIMMEERR
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
1.7 March 2, 2008 22
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
1.7 February 18, 2008 22
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
SUDOERS.LDAP(5) MAINTENANCE COMMANDS SUDOERS.LDAP(5)
|
SUDOERS.LDAP(4) MAINTENANCE COMMANDS SUDOERS.LDAP(4)
|
||||||
|
|
||||||
|
|
||||||
NNAAMMEE
|
NNAAMMEE
|
||||||
@ -67,7 +67,7 @@ DDEESSCCRRIIPPTTIIOONN
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
SUDOERS.LDAP(5) MAINTENANCE COMMANDS SUDOERS.LDAP(5)
|
SUDOERS.LDAP(4) MAINTENANCE COMMANDS SUDOERS.LDAP(4)
|
||||||
|
|
||||||
|
|
||||||
manner as a global Defaults line in _/_e_t_c_/_s_u_d_o_e_r_s. In the following
|
manner as a global Defaults line in _/_e_t_c_/_s_u_d_o_e_r_s. In the following
|
||||||
@ -133,7 +133,7 @@ SUDOERS.LDAP(5) MAINTENANCE COMMANDS SUDOERS.LDAP(5)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
SUDOERS.LDAP(5) MAINTENANCE COMMANDS SUDOERS.LDAP(5)
|
SUDOERS.LDAP(4) MAINTENANCE COMMANDS SUDOERS.LDAP(4)
|
||||||
|
|
||||||
|
|
||||||
dn: cn=%wheel,ou=SUDOers,dc=example,dc=com
|
dn: cn=%wheel,ou=SUDOers,dc=example,dc=com
|
||||||
@ -199,7 +199,7 @@ SUDOERS.LDAP(5) MAINTENANCE COMMANDS SUDOERS.LDAP(5)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
SUDOERS.LDAP(5) MAINTENANCE COMMANDS SUDOERS.LDAP(5)
|
SUDOERS.LDAP(4) MAINTENANCE COMMANDS SUDOERS.LDAP(4)
|
||||||
|
|
||||||
|
|
||||||
# LDAP equivalent of puddles
|
# LDAP equivalent of puddles
|
||||||
@ -251,7 +251,7 @@ SUDOERS.LDAP(5) MAINTENANCE COMMANDS SUDOERS.LDAP(5)
|
|||||||
Typically, this file is shared amongst different LDAP-aware clients.
|
Typically, this file is shared amongst different LDAP-aware clients.
|
||||||
As such, most of the settings are not ssuuddoo-specific. Note that ssuuddoo
|
As such, most of the settings are not ssuuddoo-specific. Note that ssuuddoo
|
||||||
parses _/_e_t_c_/_l_d_a_p_._c_o_n_f itself and may support options that differ from
|
parses _/_e_t_c_/_l_d_a_p_._c_o_n_f itself and may support options that differ from
|
||||||
those described in the _l_d_a_p_._c_o_n_f(5) manual.
|
those described in the _l_d_a_p_._c_o_n_f(4) manual.
|
||||||
|
|
||||||
Also note that on systems using the OpenLDAP libraries, default values
|
Also note that on systems using the OpenLDAP libraries, default values
|
||||||
specified in _/_e_t_c_/_o_p_e_n_l_d_a_p_/_l_d_a_p_._c_o_n_f or the user's _._l_d_a_p_r_c files are
|
specified in _/_e_t_c_/_o_p_e_n_l_d_a_p_/_l_d_a_p_._c_o_n_f or the user's _._l_d_a_p_r_c files are
|
||||||
@ -265,7 +265,7 @@ SUDOERS.LDAP(5) MAINTENANCE COMMANDS SUDOERS.LDAP(5)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
SUDOERS.LDAP(5) MAINTENANCE COMMANDS SUDOERS.LDAP(5)
|
SUDOERS.LDAP(4) MAINTENANCE COMMANDS SUDOERS.LDAP(4)
|
||||||
|
|
||||||
|
|
||||||
Only those options explicitly listed in _/_e_t_c_/_l_d_a_p_._c_o_n_f that are sup-
|
Only those options explicitly listed in _/_e_t_c_/_l_d_a_p_._c_o_n_f that are sup-
|
||||||
@ -331,7 +331,7 @@ SUDOERS.LDAP(5) MAINTENANCE COMMANDS SUDOERS.LDAP(5)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
SUDOERS.LDAP(5) MAINTENANCE COMMANDS SUDOERS.LDAP(5)
|
SUDOERS.LDAP(4) MAINTENANCE COMMANDS SUDOERS.LDAP(4)
|
||||||
|
|
||||||
|
|
||||||
BBIINNDDDDNN DN
|
BBIINNDDDDNN DN
|
||||||
@ -397,7 +397,7 @@ SUDOERS.LDAP(5) MAINTENANCE COMMANDS SUDOERS.LDAP(5)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
SUDOERS.LDAP(5) MAINTENANCE COMMANDS SUDOERS.LDAP(5)
|
SUDOERS.LDAP(4) MAINTENANCE COMMANDS SUDOERS.LDAP(4)
|
||||||
|
|
||||||
|
|
||||||
OpenLDAP libraries.
|
OpenLDAP libraries.
|
||||||
@ -463,7 +463,7 @@ SUDOERS.LDAP(5) MAINTENANCE COMMANDS SUDOERS.LDAP(5)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
SUDOERS.LDAP(5) MAINTENANCE COMMANDS SUDOERS.LDAP(5)
|
SUDOERS.LDAP(4) MAINTENANCE COMMANDS SUDOERS.LDAP(4)
|
||||||
|
|
||||||
|
|
||||||
SSAASSLL__SSEECCPPRROOPPSS none/properties
|
SSAASSLL__SSEECCPPRROOPPSS none/properties
|
||||||
@ -529,7 +529,7 @@ EEXXAAMMPPLLEESS
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
SUDOERS.LDAP(5) MAINTENANCE COMMANDS SUDOERS.LDAP(5)
|
SUDOERS.LDAP(4) MAINTENANCE COMMANDS SUDOERS.LDAP(4)
|
||||||
|
|
||||||
|
|
||||||
# Either specify one or more URIs or one or more host:port pairs.
|
# Either specify one or more URIs or one or more host:port pairs.
|
||||||
@ -595,7 +595,7 @@ SUDOERS.LDAP(5) MAINTENANCE COMMANDS SUDOERS.LDAP(5)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
SUDOERS.LDAP(5) MAINTENANCE COMMANDS SUDOERS.LDAP(5)
|
SUDOERS.LDAP(4) MAINTENANCE COMMANDS SUDOERS.LDAP(4)
|
||||||
|
|
||||||
|
|
||||||
#tls_cacertfile /etc/certs/trusted_signers.pem
|
#tls_cacertfile /etc/certs/trusted_signers.pem
|
||||||
@ -661,7 +661,7 @@ SUDOERS.LDAP(5) MAINTENANCE COMMANDS SUDOERS.LDAP(5)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
SUDOERS.LDAP(5) MAINTENANCE COMMANDS SUDOERS.LDAP(5)
|
SUDOERS.LDAP(4) MAINTENANCE COMMANDS SUDOERS.LDAP(4)
|
||||||
|
|
||||||
|
|
||||||
attributetype ( 1.3.6.1.4.1.15953.9.1.2
|
attributetype ( 1.3.6.1.4.1.15953.9.1.2
|
||||||
@ -715,7 +715,7 @@ SUDOERS.LDAP(5) MAINTENANCE COMMANDS SUDOERS.LDAP(5)
|
|||||||
|
|
||||||
|
|
||||||
SSEEEE AALLSSOO
|
SSEEEE AALLSSOO
|
||||||
_l_d_a_p_._c_o_n_f(5), _s_u_d_o_e_r_s(5)
|
_l_d_a_p_._c_o_n_f(4), _s_u_d_o_e_r_s(5)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -727,7 +727,7 @@ SSEEEE AALLSSOO
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
SUDOERS.LDAP(5) MAINTENANCE COMMANDS SUDOERS.LDAP(5)
|
SUDOERS.LDAP(4) MAINTENANCE COMMANDS SUDOERS.LDAP(4)
|
||||||
|
|
||||||
|
|
||||||
CCAAVVEEAATTSS
|
CCAAVVEEAATTSS
|
||||||
|
@ -150,7 +150,7 @@
|
|||||||
.\" ========================================================================
|
.\" ========================================================================
|
||||||
.\"
|
.\"
|
||||||
.IX Title "SUDOERS @mansectform@"
|
.IX Title "SUDOERS @mansectform@"
|
||||||
.TH SUDOERS @mansectform@ "February 18, 2008" "1.7" "MAINTENANCE COMMANDS"
|
.TH SUDOERS @mansectform@ "March 2, 2008" "1.7" "MAINTENANCE COMMANDS"
|
||||||
.SH "NAME"
|
.SH "NAME"
|
||||||
sudoers \- list of which users may execute what
|
sudoers \- list of which users may execute what
|
||||||
.SH "DESCRIPTION"
|
.SH "DESCRIPTION"
|
||||||
@ -1026,6 +1026,16 @@ The default is \f(CW\*(C`root\*(C'\fR.
|
|||||||
@SEMAN@This option is only available whe \fBsudo\fR is built with SELinux support.
|
@SEMAN@This option is only available whe \fBsudo\fR is built with SELinux support.
|
||||||
.PP
|
.PP
|
||||||
\&\fBStrings that can be used in a boolean context\fR:
|
\&\fBStrings that can be used in a boolean context\fR:
|
||||||
|
.IP "askpass" 12
|
||||||
|
.IX Item "askpass"
|
||||||
|
The \fIaskpass\fR option specifies the fully-qualilfy path to a helper
|
||||||
|
program used to read the user's password when no terminal is
|
||||||
|
available. This may be the case when \fBsudo\fR is executed from a
|
||||||
|
graphical (as opposed to text\-based) application. The program
|
||||||
|
specified by \fIaskpass\fR should display the argument passed to it
|
||||||
|
as the prompt and write the user's password to the standard output.
|
||||||
|
The value of \fIaskpass\fR may be overridden by the \f(CW\*(C`SUDO_ASKPASS\*(C'\fR
|
||||||
|
environment variable.
|
||||||
.IP "exempt_group" 12
|
.IP "exempt_group" 12
|
||||||
.IX Item "exempt_group"
|
.IX Item "exempt_group"
|
||||||
Users in this group are exempt from password and \s-1PATH\s0 requirements.
|
Users in this group are exempt from password and \s-1PATH\s0 requirements.
|
||||||
|
10
visudo.cat
10
visudo.cat
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
VISUDO(8) MAINTENANCE COMMANDS VISUDO(8)
|
VISUDO(1m) MAINTENANCE COMMANDS VISUDO(1m)
|
||||||
|
|
||||||
|
|
||||||
NNAAMMEE
|
NNAAMMEE
|
||||||
@ -11,7 +11,7 @@ SSYYNNOOPPSSIISS
|
|||||||
vviissuuddoo [--cc] [--qq] [--ss] [--VV] [--ff _s_u_d_o_e_r_s]
|
vviissuuddoo [--cc] [--qq] [--ss] [--VV] [--ff _s_u_d_o_e_r_s]
|
||||||
|
|
||||||
DDEESSCCRRIIPPTTIIOONN
|
DDEESSCCRRIIPPTTIIOONN
|
||||||
vviissuuddoo edits the _s_u_d_o_e_r_s file in a safe fashion, analogous to _v_i_p_w(8).
|
vviissuuddoo edits the _s_u_d_o_e_r_s file in a safe fashion, analogous to _v_i_p_w(1m).
|
||||||
vviissuuddoo locks the _s_u_d_o_e_r_s file against multiple simultaneous edits, pro-
|
vviissuuddoo locks the _s_u_d_o_e_r_s file against multiple simultaneous edits, pro-
|
||||||
vides basic sanity checks, and checks for parse errors. If the _s_u_d_o_e_r_s
|
vides basic sanity checks, and checks for parse errors. If the _s_u_d_o_e_r_s
|
||||||
file is currently being edited you will receive a message to try again
|
file is currently being edited you will receive a message to try again
|
||||||
@ -67,7 +67,7 @@ OOPPTTIIOONNSS
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
VISUDO(8) MAINTENANCE COMMANDS VISUDO(8)
|
VISUDO(1m) MAINTENANCE COMMANDS VISUDO(1m)
|
||||||
|
|
||||||
|
|
||||||
combined with the --cc flag.
|
combined with the --cc flag.
|
||||||
@ -119,7 +119,7 @@ DDIIAAGGNNOOSSTTIICCSS
|
|||||||
--ss (strict) mode this is an error, not a warning.
|
--ss (strict) mode this is an error, not a warning.
|
||||||
|
|
||||||
SSEEEE AALLSSOO
|
SSEEEE AALLSSOO
|
||||||
_v_i(1), _s_u_d_o_e_r_s(5), _s_u_d_o(8), _v_i_p_w(8)
|
_v_i(1), _s_u_d_o_e_r_s(4), _s_u_d_o(1m), _v_i_p_w(8)
|
||||||
|
|
||||||
AAUUTTHHOORR
|
AAUUTTHHOORR
|
||||||
Many people have worked on _s_u_d_o over the years; this version of vviissuuddoo
|
Many people have worked on _s_u_d_o over the years; this version of vviissuuddoo
|
||||||
@ -133,7 +133,7 @@ AAUUTTHHOORR
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
VISUDO(8) MAINTENANCE COMMANDS VISUDO(8)
|
VISUDO(1m) MAINTENANCE COMMANDS VISUDO(1m)
|
||||||
|
|
||||||
|
|
||||||
Todd Miller
|
Todd Miller
|
||||||
|
Loading…
x
Reference in New Issue
Block a user