Skip to content

Commit e0ee845

Browse files
committed
Reference SETENV-related settings in the command environment section.
Based on GitHub PR #273 from Ilya Kulakov.
1 parent 733d529 commit e0ee845

2 files changed

Lines changed: 47 additions & 8 deletions

File tree

docs/sudoers.man.in

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
.nr BA @BAMAN@
2626
.nr LC @LCMAN@
2727
.nr PS @PSMAN@
28-
.TH "SUDOERS" "@mansectform@" "June 18, 2023" "Sudo @PACKAGE_VERSION@" "File Formats Manual"
28+
.TH "SUDOERS" "@mansectform@" "June 20, 2023" "Sudo @PACKAGE_VERSION@" "File Formats Manual"
2929
.nh
3030
.if n .ad l
3131
.SH "NAME"
@@ -475,14 +475,34 @@ varies based on the operating system
475475
\fBsudo\fR
476476
is running on.
477477
.PP
478-
Other
478+
Other settings may influence the command environment:
479+
.TP 3n
480+
\fB\(bu\fR
479481
\fBsudoers\fR
480-
options may influence the command environment, such as
482+
options such as
481483
\fIalways_set_home\fR,
482484
\fIsecure_path\fR,
483485
\fIset_logname\fR,
486+
\fIset_home\fR,
487+
and
488+
\fIsetenv\fR.
489+
.TP 3n
490+
\fB\(bu\fR
491+
Command tags, such as
492+
\fRSETENV\fR
493+
and
494+
\fRNOSETENV\fR.
495+
Note that
496+
\fRSETENV\fR
497+
is implied if the command matched is
498+
\fBALL\fR.
499+
.TP 3n
500+
\fB\(bu\fR
501+
\fBsudo\fR
502+
options, such as
503+
\fB\-E\fR
484504
and
485-
\fIset_home\fR.
505+
\fB\-i\fR.
486506
.PP
487507
On systems that support PAM where the
488508
\fBpam_env\fR

docs/sudoers.mdoc.in

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
.nr BA @BAMAN@
2626
.nr LC @LCMAN@
2727
.nr PS @PSMAN@
28-
.Dd June 18, 2023
28+
.Dd June 20, 2023
2929
.Dt SUDOERS @mansectform@
3030
.Os Sudo @PACKAGE_VERSION@
3131
.Sh NAME
@@ -461,14 +461,33 @@ varies based on the operating system
461461
.Nm sudo
462462
is running on.
463463
.Pp
464-
Other
464+
Other settings may influence the command environment:
465+
.Bl -bullet -width 1n
466+
.It
465467
.Nm
466-
options may influence the command environment, such as
468+
options such as
467469
.Em always_set_home ,
468470
.Em secure_path ,
469471
.Em set_logname ,
472+
.Em set_home ,
473+
and
474+
.Em setenv .
475+
.It
476+
Command tags, such as
477+
.Dv SETENV
478+
and
479+
.Dv NOSETENV .
480+
Note that
481+
.Dv SETENV
482+
is implied if the command matched is
483+
.Sy ALL .
484+
.It
485+
.Nm sudo
486+
options, such as
487+
.Fl E
470488
and
471-
.Em set_home .
489+
.Fl i .
490+
.El
472491
.Pp
473492
On systems that support PAM where the
474493
.Sy pam_env

0 commit comments

Comments
 (0)