From 95ef9765288d3b0bb002646eb28546cd1bd8f642 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Fri, 6 Aug 2004 23:32:31 +0000 Subject: [PATCH] regen --- sudo.cat | 56 ++++++++++++++++++++++++++--------------------------- sudo.man.in | 6 ++++-- 2 files changed, 32 insertions(+), 30 deletions(-) diff --git a/sudo.cat b/sudo.cat index 94033ff03..9278f4172 100644 --- a/sudo.cat +++ b/sudo.cat @@ -61,7 +61,7 @@ DDEESSCCRRIIPPTTIIOONN -1.6.8 August 5, 2004 1 +1.6.8 August 6, 2004 1 @@ -80,9 +80,9 @@ OOPPTTIIOONNSS -H The --HH (_H_O_M_E) option sets the HOME environment vari­ able to the homedir of the target user (root by - default) as specified in passwd(5). By default, ssuuddoo + default) as specified in passwd(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 sudoers(5)). + in sudoers(4)). -K The --KK (sure _k_i_l_l) option is like --kk except that it removes the user's timestamp entirely. Like --kk, this @@ -127,7 +127,7 @@ OOPPTTIIOONNSS -1.6.8 August 5, 2004 2 +1.6.8 August 6, 2004 2 @@ -182,7 +182,7 @@ SUDO(1m) MAINTENANCE COMMANDS SUDO(1m) sage and exit. -i 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 - specified in the passwd(5) entry of the user that the + specified in the passwd(4) entry of the user that the command is being run as. The command name argument given to the shell begins with a - to tell the shell to run as a login shell. ssuuddoo attempts to change to @@ -193,7 +193,7 @@ SUDO(1m) MAINTENANCE COMMANDS SUDO(1m) -1.6.8 August 5, 2004 3 +1.6.8 August 6, 2004 3 @@ -240,11 +240,14 @@ SUDO(1m) MAINTENANCE COMMANDS SUDO(1m) -s 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 in passwd(5). + as specified in passwd(4). -u The --uu (_u_s_e_r) option causes ssuuddoo to run the specified command as a user other than _r_o_o_t. To specify a _u_i_d - instead of a _u_s_e_r_n_a_m_e, use _#_u_i_d. + instead of a _u_s_e_r_n_a_m_e, use _#_u_i_d. Note that if the + _t_a_r_g_e_t_p_w Defaults option is set (see sudoers(4)) it is + not possible to run commands with a uid not listed in + the password database. -v If given the --vv (_v_a_l_i_d_a_t_e) option, ssuuddoo will update the user's timestamp, prompting for the user's pass­ @@ -253,13 +256,10 @@ SUDO(1m) MAINTENANCE COMMANDS SUDO(1m) in _s_u_d_o_e_r_s) but does not run a command. -- The ---- flag indicates that ssuuddoo should stop processing - command line arguments. It is most useful in conjunc­ - tion with the --ss flag. - -1.6.8 August 5, 2004 4 +1.6.8 August 6, 2004 4 @@ -268,6 +268,9 @@ SUDO(1m) MAINTENANCE COMMANDS SUDO(1m) SUDO(1m) MAINTENANCE COMMANDS SUDO(1m) + command line arguments. It is most useful in conjunc­ + tion with the --ss flag. + RREETTUURRNN VVAALLUUEESS Upon successful execution of a program, the return value from ssuuddoo will simply be the return value of the program @@ -319,13 +322,10 @@ SSEECCUURRIITTYY NNOOTTEESS cally. 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 con­ - tents if it is not owned by root and only writable by - root. On systems that allow non-root users to give away -1.6.8 August 5, 2004 5 +1.6.8 August 6, 2004 5 @@ -334,6 +334,9 @@ SSEECCUURRIITTYY NNOOTTEESS SUDO(1m) MAINTENANCE COMMANDS SUDO(1m) + (_/_v_a_r_/_r_u_n_/_s_u_d_o by default) and ignore the directory's con­ + tents if it is not owned by root and only writable by + 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 pos­ sible for a user to create the timestamp directory before @@ -367,7 +370,7 @@ SUDO(1m) MAINTENANCE COMMANDS SUDO(1m) user an effective root shell. EEXXAAMMPPLLEESS - Note: the following examples assume suitable sudoers(5) + Note: the following examples assume suitable sudoers(4) entries. To get a file listing of an unreadable directory: @@ -386,12 +389,9 @@ EEXXAAMMPPLLEESS To shutdown a machine: - $ sudo shutdown -r +15 "quick reboot" - - -1.6.8 August 5, 2004 6 +1.6.8 August 6, 2004 6 @@ -400,6 +400,8 @@ EEXXAAMMPPLLEESS SUDO(1m) MAINTENANCE COMMANDS SUDO(1m) + $ sudo shutdown -r +15 "quick reboot" + 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 cd and file redirection work. @@ -455,9 +457,7 @@ AAUUTTHHOORRSS - - -1.6.8 August 5, 2004 7 +1.6.8 August 6, 2004 7 @@ -484,7 +484,7 @@ CCAAVVEEAATTSS user to run commands via shell 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. - See the sudoers(5) manual for details. + See the sudoers(4) manual for details. It is not meaningful to run the cd command directly via sudo, e.g. @@ -506,8 +506,8 @@ CCAAVVEEAATTSS setuid shell scripts are generally safe). SSEEEE AALLSSOO - _g_r_e_p(1), _s_u(1), _s_t_a_t(2), _l_o_g_i_n___c_a_p(3), sudoers(5), - passwd(5), visudo(1m) + _g_r_e_p(1), _s_u(1), _s_t_a_t(2), _l_o_g_i_n___c_a_p(3), sudoers(4), + passwd(4), visudo(1m) @@ -523,6 +523,6 @@ SSEEEE AALLSSOO -1.6.8 August 5, 2004 8 +1.6.8 August 6, 2004 8 diff --git a/sudo.man.in b/sudo.man.in index 1e3801d1a..2382d554a 100644 --- a/sudo.man.in +++ b/sudo.man.in @@ -149,7 +149,7 @@ .\" ======================================================================== .\" .IX Title "SUDO @mansectsu@" -.TH SUDO @mansectsu@ "August 5, 2004" "1.6.8" "MAINTENANCE COMMANDS" +.TH SUDO @mansectsu@ "August 6, 2004" "1.6.8" "MAINTENANCE COMMANDS" .SH "NAME" sudo, sudoedit \- execute a command as another user .SH "SYNOPSIS" @@ -369,7 +369,9 @@ in passwd(@mansectform@). .IX Item "-u" The \fB\-u\fR (\fIuser\fR) option causes \fBsudo\fR to run the specified command as a user other than \fIroot\fR. To specify a \fIuid\fR instead of a -\&\fIusername\fR, use \fI#uid\fR. +\&\fIusername\fR, use \fI#uid\fR. Note that if the \fItargetpw\fR Defaults +option is set (see sudoers(@mansectform@)) it is not possible +to run commands with a uid not listed in the password database. .IP "\-v" 4 .IX Item "-v" If given the \fB\-v\fR (\fIvalidate\fR) option, \fBsudo\fR will update the -- 2.40.0