mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-28 21:07:55 +00:00
Reference SETENV-related settings in the command environment section.
Based on GitHub PR #273 from Ilya Kulakov.
This commit is contained in:
parent
733d5291b4
commit
e0ee845dfc
@ -25,7 +25,7 @@
|
|||||||
.nr BA @BAMAN@
|
.nr BA @BAMAN@
|
||||||
.nr LC @LCMAN@
|
.nr LC @LCMAN@
|
||||||
.nr PS @PSMAN@
|
.nr PS @PSMAN@
|
||||||
.TH "SUDOERS" "@mansectform@" "June 18, 2023" "Sudo @PACKAGE_VERSION@" "File Formats Manual"
|
.TH "SUDOERS" "@mansectform@" "June 20, 2023" "Sudo @PACKAGE_VERSION@" "File Formats Manual"
|
||||||
.nh
|
.nh
|
||||||
.if n .ad l
|
.if n .ad l
|
||||||
.SH "NAME"
|
.SH "NAME"
|
||||||
@ -475,14 +475,34 @@ varies based on the operating system
|
|||||||
\fBsudo\fR
|
\fBsudo\fR
|
||||||
is running on.
|
is running on.
|
||||||
.PP
|
.PP
|
||||||
Other
|
Other settings may influence the command environment:
|
||||||
|
.TP 3n
|
||||||
|
\fB\(bu\fR
|
||||||
\fBsudoers\fR
|
\fBsudoers\fR
|
||||||
options may influence the command environment, such as
|
options such as
|
||||||
\fIalways_set_home\fR,
|
\fIalways_set_home\fR,
|
||||||
\fIsecure_path\fR,
|
\fIsecure_path\fR,
|
||||||
\fIset_logname\fR,
|
\fIset_logname\fR,
|
||||||
|
\fIset_home\fR,
|
||||||
and
|
and
|
||||||
\fIset_home\fR.
|
\fIsetenv\fR.
|
||||||
|
.TP 3n
|
||||||
|
\fB\(bu\fR
|
||||||
|
Command tags, such as
|
||||||
|
\fRSETENV\fR
|
||||||
|
and
|
||||||
|
\fRNOSETENV\fR.
|
||||||
|
Note that
|
||||||
|
\fRSETENV\fR
|
||||||
|
is implied if the command matched is
|
||||||
|
\fBALL\fR.
|
||||||
|
.TP 3n
|
||||||
|
\fB\(bu\fR
|
||||||
|
\fBsudo\fR
|
||||||
|
options, such as
|
||||||
|
\fB\-E\fR
|
||||||
|
and
|
||||||
|
\fB\-i\fR.
|
||||||
.PP
|
.PP
|
||||||
On systems that support PAM where the
|
On systems that support PAM where the
|
||||||
\fBpam_env\fR
|
\fBpam_env\fR
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
.nr BA @BAMAN@
|
.nr BA @BAMAN@
|
||||||
.nr LC @LCMAN@
|
.nr LC @LCMAN@
|
||||||
.nr PS @PSMAN@
|
.nr PS @PSMAN@
|
||||||
.Dd June 18, 2023
|
.Dd June 20, 2023
|
||||||
.Dt SUDOERS @mansectform@
|
.Dt SUDOERS @mansectform@
|
||||||
.Os Sudo @PACKAGE_VERSION@
|
.Os Sudo @PACKAGE_VERSION@
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@ -461,14 +461,33 @@ varies based on the operating system
|
|||||||
.Nm sudo
|
.Nm sudo
|
||||||
is running on.
|
is running on.
|
||||||
.Pp
|
.Pp
|
||||||
Other
|
Other settings may influence the command environment:
|
||||||
|
.Bl -bullet -width 1n
|
||||||
|
.It
|
||||||
.Nm
|
.Nm
|
||||||
options may influence the command environment, such as
|
options such as
|
||||||
.Em always_set_home ,
|
.Em always_set_home ,
|
||||||
.Em secure_path ,
|
.Em secure_path ,
|
||||||
.Em set_logname ,
|
.Em set_logname ,
|
||||||
|
.Em set_home ,
|
||||||
and
|
and
|
||||||
.Em set_home .
|
.Em setenv .
|
||||||
|
.It
|
||||||
|
Command tags, such as
|
||||||
|
.Dv SETENV
|
||||||
|
and
|
||||||
|
.Dv NOSETENV .
|
||||||
|
Note that
|
||||||
|
.Dv SETENV
|
||||||
|
is implied if the command matched is
|
||||||
|
.Sy ALL .
|
||||||
|
.It
|
||||||
|
.Nm sudo
|
||||||
|
options, such as
|
||||||
|
.Fl E
|
||||||
|
and
|
||||||
|
.Fl i .
|
||||||
|
.El
|
||||||
.Pp
|
.Pp
|
||||||
On systems that support PAM where the
|
On systems that support PAM where the
|
||||||
.Sy pam_env
|
.Sy pam_env
|
||||||
|
Loading…
x
Reference in New Issue
Block a user