Add -n (non-interactive) flag.
This commit is contained in:
80
sudo.cat
80
sudo.cat
@@ -8,15 +8,15 @@ NNAAMMEE
|
||||
sudo, sudoedit - execute a command as another user
|
||||
|
||||
SSYYNNOOPPSSIISS
|
||||
ssuuddoo --hh | --KK | --kk | --LL | --VV | --vv
|
||||
ssuuddoo [--nn] --hh | --KK | --kk | --LL | --VV | --vv
|
||||
|
||||
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]
|
||||
ssuuddoo --ll[[ll]] [--AAnnSS] [--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_m_a_n_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]
|
||||
ssuuddoo [--AAbbEEHHnnPPSS] [--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}]
|
||||
|
||||
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]
|
||||
ssuuddooeeddiitt [--AAnnSS] [--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 ...
|
||||
|
||||
DDEESSCCRRIIPPTTIIOONN
|
||||
@@ -61,7 +61,7 @@ DDEESSCCRRIIPPTTIIOONN
|
||||
|
||||
|
||||
|
||||
1.7 March 2, 2008 1
|
||||
1.7 March 18, 2008 1
|
||||
|
||||
|
||||
|
||||
@@ -127,7 +127,7 @@ OOPPTTIIOONNSS
|
||||
|
||||
|
||||
|
||||
1.7 March 2, 2008 2
|
||||
1.7 March 18, 2008 2
|
||||
|
||||
|
||||
|
||||
@@ -193,7 +193,7 @@ SUDO(1m) MAINTENANCE COMMANDS SUDO(1m)
|
||||
|
||||
|
||||
|
||||
1.7 March 2, 2008 3
|
||||
1.7 March 18, 2008 3
|
||||
|
||||
|
||||
|
||||
@@ -229,6 +229,11 @@ SUDO(1m) MAINTENANCE COMMANDS SUDO(1m)
|
||||
--llll), or if --ll is specified multiple times, a longer list
|
||||
format is used.
|
||||
|
||||
-n The --nn (_n_o_n_-_i_n_t_e_r_a_c_t_i_v_e) option prevents ssuuddoo from prompt-
|
||||
ing the user for a password. If a password is required for
|
||||
the command to run, ssuuddoo will display an error messages and
|
||||
exit.
|
||||
|
||||
-P The --PP (_p_r_e_s_e_r_v_e _g_r_o_u_p _v_e_c_t_o_r) option causes ssuuddoo to pre-
|
||||
serve the invoking user's group vector unaltered. By
|
||||
default, ssuuddoo will initialize the group vector to the list
|
||||
@@ -252,14 +257,9 @@ SUDO(1m) MAINTENANCE COMMANDS SUDO(1m)
|
||||
%U expanded to the login name of the user the command will
|
||||
be run as (defaults to root)
|
||||
|
||||
%u expanded to the invoking user's login name
|
||||
|
||||
%% two consecutive % characters are collapsed into a sin-
|
||||
gle % character
|
||||
|
||||
|
||||
|
||||
1.7 March 2, 2008 4
|
||||
1.7 March 18, 2008 4
|
||||
|
||||
|
||||
|
||||
@@ -268,6 +268,11 @@ SUDO(1m) MAINTENANCE COMMANDS SUDO(1m)
|
||||
SUDO(1m) MAINTENANCE COMMANDS SUDO(1m)
|
||||
|
||||
|
||||
%u expanded to the invoking user's login name
|
||||
|
||||
%% two consecutive % characters are collapsed into a sin-
|
||||
gle % character
|
||||
|
||||
The prompt specified by the --pp option will override the
|
||||
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.
|
||||
@@ -317,15 +322,10 @@ SUDO(1m) MAINTENANCE COMMANDS SUDO(1m)
|
||||
line are subject to the same restrictions as normal environment vari-
|
||||
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
|
||||
matched is ALL, the user may set variables that would overwise be for-
|
||||
bidden. See _s_u_d_o_e_r_s(4) for more information.
|
||||
|
||||
RREETTUURRNN VVAALLUUEESS
|
||||
Upon successful execution of a program, the return value from ssuuddoo will
|
||||
|
||||
|
||||
|
||||
1.7 March 2, 2008 5
|
||||
1.7 March 18, 2008 5
|
||||
|
||||
|
||||
|
||||
@@ -334,6 +334,11 @@ RREETTUURRNN VVAALLUUEESS
|
||||
SUDO(1m) MAINTENANCE COMMANDS SUDO(1m)
|
||||
|
||||
|
||||
matched is ALL, the user may set variables that would overwise be for-
|
||||
bidden. See _s_u_d_o_e_r_s(4) for more information.
|
||||
|
||||
RREETTUURRNN VVAALLUUEESS
|
||||
Upon successful execution of a program, the return value from ssuuddoo will
|
||||
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-
|
||||
@@ -383,15 +388,10 @@ SSEECCUURRIITTYY NNOOTTEESS
|
||||
environment variable is _n_o_t modified and is passed unchanged to the
|
||||
program that ssuuddoo executes.
|
||||
|
||||
ssuuddoo will check the ownership of its timestamp directory (_/_v_a_r_/_r_u_n_/_s_u_d_o
|
||||
by default) and ignore the directory's contents if it is not owned by
|
||||
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
|
||||
directory is located in a directory writable by anyone (e.g., _/_t_m_p), it
|
||||
|
||||
|
||||
|
||||
1.7 March 2, 2008 6
|
||||
1.7 March 18, 2008 6
|
||||
|
||||
|
||||
|
||||
@@ -400,6 +400,11 @@ SSEECCUURRIITTYY NNOOTTEESS
|
||||
SUDO(1m) MAINTENANCE COMMANDS SUDO(1m)
|
||||
|
||||
|
||||
ssuuddoo will check the ownership of its timestamp directory (_/_v_a_r_/_r_u_n_/_s_u_d_o
|
||||
by default) and ignore the directory's contents if it is not owned by
|
||||
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
|
||||
directory is located in a directory writable by anyone (e.g., _/_t_m_p), it
|
||||
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-
|
||||
tory and its contents, the only damage that can be done is to "hide"
|
||||
@@ -450,14 +455,9 @@ EENNVVIIRROONNMMEENNTT
|
||||
|
||||
SUDO_COMMAND Set to the command run by sudo
|
||||
|
||||
SUDO_USER Set to the login of the user who invoked sudo
|
||||
|
||||
SUDO_UID Set to the uid of the user who invoked sudo
|
||||
|
||||
|
||||
|
||||
|
||||
1.7 March 2, 2008 7
|
||||
1.7 March 18, 2008 7
|
||||
|
||||
|
||||
|
||||
@@ -466,6 +466,10 @@ EENNVVIIRROONNMMEENNTT
|
||||
SUDO(1m) MAINTENANCE COMMANDS SUDO(1m)
|
||||
|
||||
|
||||
SUDO_USER Set to the login of the user who invoked sudo
|
||||
|
||||
SUDO_UID Set to the uid 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
|
||||
@@ -517,13 +521,9 @@ AAUUTTHHOORRSS
|
||||
Many people have worked on ssuuddoo over the years; this version consists
|
||||
of code written primarily by:
|
||||
|
||||
Todd C. Miller
|
||||
|
||||
See the HISTORY file in the ssuuddoo distribution or visit
|
||||
|
||||
|
||||
|
||||
1.7 March 2, 2008 8
|
||||
1.7 March 18, 2008 8
|
||||
|
||||
|
||||
|
||||
@@ -532,6 +532,9 @@ AAUUTTHHOORRSS
|
||||
SUDO(1m) MAINTENANCE COMMANDS SUDO(1m)
|
||||
|
||||
|
||||
Todd C. Miller
|
||||
|
||||
See the HISTORY file in the ssuuddoo distribution or visit
|
||||
http://www.sudo.ws/sudo/history.html for a short history of ssuuddoo.
|
||||
|
||||
CCAAVVEEAATTSS
|
||||
@@ -586,9 +589,6 @@ DDIISSCCLLAAIIMMEERR
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
1.7 March 2, 2008 9
|
||||
1.7 March 18, 2008 9
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user