From: Todd C. Miller Date: Sat, 30 Dec 2000 03:45:31 +0000 (+0000) Subject: PATH is also preserved when env_reset is in effect X-Git-Tag: SUDO_1_6_4~217 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9318379d83ac10ff06ffc93451efa5ad516ccca3;p=sudo PATH is also preserved when env_reset is in effect --- diff --git a/sudoers.cat b/sudoers.cat index 1dbf2464b..93687db75 100644 --- a/sudoers.cat +++ b/sudoers.cat @@ -453,7 +453,7 @@ sudoers(4) MAINTENANCE COMMANDS sudoers(4) env_reset If set, ssssuuuuddddoooo will reset the environment to only contain the following variables: `HOME', `SHELL', `LOGNAME', and `USER' (in addition to - the `SUDO_*' variables). The `PATH' + the `SUDO_*' variables). The `PATH' and @@ -466,9 +466,9 @@ December 29, 2000 1.6.4 7 sudoers(4) MAINTENANCE COMMANDS sudoers(4) - environment variable is preserved unaltered. - Other specific variables may be preserved with - the i option. + `TERM' environment variables are preserved + unaltered. Other specific variables may be + preserved with the i option. use_loginclass If set, ssssuuuuddddoooo will apply the defaults specified diff --git a/sudoers.man.in b/sudoers.man.in index d47026f54..47a3f23e0 100644 --- a/sudoers.man.in +++ b/sudoers.man.in @@ -1,5 +1,5 @@ .\" Automatically generated by Pod::Man version 1.04 -.\" Fri Dec 29 20:29:02 2000 +.\" Fri Dec 29 20:44:35 2000 .\" .\" Standard preamble: .\" ====================================================================== @@ -497,8 +497,8 @@ dangerous functionality when a program is run setuid. .IX Item "env_reset" If set, \fBsudo\fR will reset the environment to only contain the following variables: \f(CW\*(C`HOME\*(C'\fR, \f(CW\*(C`SHELL\*(C'\fR, \f(CW\*(C`LOGNAME\*(C'\fR, and \f(CW\*(C`USER\*(C'\fR -(in addition to the \f(CW\*(C`SUDO_*\*(C'\fR variables). The \f(CW\*(C`PATH\*(C'\fR environment -variable is preserved unaltered. Other specific variables +(in addition to the \f(CW\*(C`SUDO_*\*(C'\fR variables). The \f(CW\*(C`PATH\*(C'\fR and \f(CW\*(C`TERM\*(C'\fR +environment variables are preserved unaltered. Other specific variables may be preserved with the i option. .Ip "use_loginclass" 12 .IX Item "use_loginclass" diff --git a/sudoers.pod b/sudoers.pod index b43d0deae..7dd719c96 100644 --- a/sudoers.pod +++ b/sudoers.pod @@ -411,8 +411,8 @@ dangerous functionality when a program is run setuid. If set, B will reset the environment to only contain the following variables: C, C, C, and C -(in addition to the C variables). The C environment -variable is preserved unaltered. Other specific variables +(in addition to the C variables). The C and C +environment variables are preserved unaltered. Other specific variables may be preserved with the i option. =item use_loginclass