From: Todd C. Miller Date: Sun, 8 Dec 2013 18:06:27 +0000 (-0700) Subject: Make -c option description more accurate. X-Git-Tag: SUDO_1_8_9^2~49 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=47dbe189f9da3895e8bd708860a7b85a9256396a;p=sudo Make -c option description more accurate. --- diff --git a/doc/sudo.cat b/doc/sudo.cat index 28bb7409b..ee0e9736d 100644 --- a/doc/sudo.cat +++ b/doc/sudo.cat @@ -92,11 +92,12 @@ DDEESSCCRRIIPPTTIIOONN either a class name as defined in _/_e_t_c_/_l_o_g_i_n_._c_o_n_f, or a single `-' character. If _c_l_a_s_s is -, the default login class of the target user will be used. Otherwise, the command must - be run as root, or ssuuddoo must be run from a shell that is - already root. If the command is being run as a login shell, - additional _/_e_t_c_/_l_o_g_i_n_._c_o_n_f settings, such as the umask and - environment variables, will be applied if present. This - option is only available on systems with BSD login classes. + be run as the superuser (user ID 0), or ssuuddoo must be run from + a shell that is already running as the superuser. If the + command is being run as a login shell, additional + _/_e_t_c_/_l_o_g_i_n_._c_o_n_f settings, such as the umask and environment + variables, will be applied if present. This option is only + available on systems with BSD login classes. --EE, ----pprreesseerrvvee--eennvv Indicates to the security policy that the user wishes to diff --git a/doc/sudo.man.in b/doc/sudo.man.in index 43e2d915c..9852fb274 100644 --- a/doc/sudo.man.in +++ b/doc/sudo.man.in @@ -241,9 +241,9 @@ If is \fR-\fR, the default login class of the target user will be used. -Otherwise, the command must be run as root, or +Otherwise, the command must be run as the superuser (user ID 0), or \fBsudo\fR -must be run from a shell that is already root. +must be run from a shell that is already running as the superuser. If the command is being run as a login shell, additional \fI/etc/login.conf\fR settings, such as the umask and environment variables, will diff --git a/doc/sudo.mdoc.in b/doc/sudo.mdoc.in index c0cc5e6af..c8dbfdeb8 100644 --- a/doc/sudo.mdoc.in +++ b/doc/sudo.mdoc.in @@ -277,9 +277,9 @@ If is .Li - , the default login class of the target user will be used. -Otherwise, the command must be run as root, or +Otherwise, the command must be run as the superuser (user ID 0), or .Nm sudo -must be run from a shell that is already root. +must be run from a shell that is already running as the superuser. If the command is being run as a login shell, additional .Pa /etc/login.conf settings, such as the umask and environment variables, will