mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-22 09:57:41 +00:00
Attempt to clarify the conditions under which MAIL and HOME are
set to the target user.
This commit is contained in:
parent
4870060e91
commit
42666204e2
17
doc/sudo.cat
17
doc/sudo.cat
@ -455,13 +455,16 @@ EENNVVIIRROONNMMEENNTT
|
|||||||
EDITOR Default editor to use in --ee (sudoedit) mode if neither
|
EDITOR Default editor to use in --ee (sudoedit) mode if neither
|
||||||
SUDO_EDITOR nor VISUAL is set.
|
SUDO_EDITOR nor VISUAL is set.
|
||||||
|
|
||||||
MAIL In --ii mode or when _e_n_v___r_e_s_e_t is enabled in _s_u_d_o_e_r_s, set
|
MAIL Set to the mail spool of the target user when the --ii
|
||||||
to the mail spool of the target user.
|
option is specified or when _e_n_v___r_e_s_e_t is enabled in
|
||||||
|
_s_u_d_o_e_r_s (unless MAIL is present in the _e_n_v___k_e_e_p list).
|
||||||
|
|
||||||
HOME Set to the home directory of the target user if --ii or --HH
|
HOME Set to the home directory of the target user when the --ii
|
||||||
are specified, _e_n_v___r_e_s_e_t or _a_l_w_a_y_s___s_e_t___h_o_m_e are set in
|
or --HH options are specified, when the --ss option is
|
||||||
_s_u_d_o_e_r_s, or when the --ss option is specified and _s_e_t___h_o_m_e
|
specified and _s_e_t___h_o_m_e is set in _s_u_d_o_e_r_s, when
|
||||||
is set in _s_u_d_o_e_r_s.
|
_a_l_w_a_y_s___s_e_t___h_o_m_e is enabled in _s_u_d_o_e_r_s, or when _e_n_v___r_e_s_e_t
|
||||||
|
is enabled in _s_u_d_o_e_r_s and _H_O_M_E is not present in the
|
||||||
|
_e_n_v___k_e_e_p list.
|
||||||
|
|
||||||
PATH May be overridden by the security policy.
|
PATH May be overridden by the security policy.
|
||||||
|
|
||||||
@ -582,4 +585,4 @@ DDIISSCCLLAAIIMMEERR
|
|||||||
file distributed with ssuuddoo or http://www.sudo.ws/license.html for
|
file distributed with ssuuddoo or http://www.sudo.ws/license.html for
|
||||||
complete details.
|
complete details.
|
||||||
|
|
||||||
Sudo 1.8.14 June 8, 2015 Sudo 1.8.14
|
Sudo 1.8.14 July 10, 2015 Sudo 1.8.14
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
.\" Agency (DARPA) and Air Force Research Laboratory, Air Force
|
.\" Agency (DARPA) and Air Force Research Laboratory, Air Force
|
||||||
.\" Materiel Command, USAF, under agreement number F39502-99-1-0512.
|
.\" Materiel Command, USAF, under agreement number F39502-99-1-0512.
|
||||||
.\"
|
.\"
|
||||||
.TH "SUDO" "8" "June 8, 2015" "Sudo @PACKAGE_VERSION@" "System Manager's Manual"
|
.TH "SUDO" "8" "July 10, 2015" "Sudo @PACKAGE_VERSION@" "System Manager's Manual"
|
||||||
.nh
|
.nh
|
||||||
.if n .ad l
|
.if n .ad l
|
||||||
.SH "NAME"
|
.SH "NAME"
|
||||||
@ -920,31 +920,42 @@ nor
|
|||||||
is set.
|
is set.
|
||||||
.TP 17n
|
.TP 17n
|
||||||
\fRMAIL\fR
|
\fRMAIL\fR
|
||||||
In
|
Set to the mail spool of the target user when the
|
||||||
\fB\-i\fR
|
\fB\-i\fR
|
||||||
mode or when
|
option is specified or when
|
||||||
\fIenv_reset\fR
|
\fIenv_reset\fR
|
||||||
is enabled in
|
is enabled in
|
||||||
\fIsudoers\fR,
|
\fIsudoers\fR
|
||||||
set to the mail spool of the target user.
|
(unless
|
||||||
|
\fRMAIL\fR
|
||||||
|
is present in the
|
||||||
|
\fIenv_keep\fR
|
||||||
|
list).
|
||||||
.TP 17n
|
.TP 17n
|
||||||
\fRHOME\fR
|
\fRHOME\fR
|
||||||
Set to the home directory of the target user if
|
Set to the home directory of the target user when the
|
||||||
\fB\-i\fR
|
\fB\-i\fR
|
||||||
or
|
or
|
||||||
\fB\-H\fR
|
\fB\-H\fR
|
||||||
are specified,
|
options are specified, when the
|
||||||
\fIenv_reset\fR
|
|
||||||
or
|
|
||||||
\fIalways_set_home\fR
|
|
||||||
are set in
|
|
||||||
\fIsudoers\fR,
|
|
||||||
or when the
|
|
||||||
\fB\-s\fR
|
\fB\-s\fR
|
||||||
option is specified and
|
option is specified and
|
||||||
\fIset_home\fR
|
\fIset_home\fR
|
||||||
is set in
|
is set in
|
||||||
\fIsudoers\fR.
|
\fIsudoers\fR,
|
||||||
|
when
|
||||||
|
\fIalways_set_home\fR
|
||||||
|
is enabled in
|
||||||
|
\fIsudoers\fR,
|
||||||
|
or when
|
||||||
|
\fIenv_reset\fR
|
||||||
|
is enabled in
|
||||||
|
\fIsudoers\fR
|
||||||
|
and
|
||||||
|
\fIHOME\fR
|
||||||
|
is not present in the
|
||||||
|
\fIenv_keep\fR
|
||||||
|
list.
|
||||||
.TP 17n
|
.TP 17n
|
||||||
\fRPATH\fR
|
\fRPATH\fR
|
||||||
May be overridden by the security policy.
|
May be overridden by the security policy.
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
.\" Agency (DARPA) and Air Force Research Laboratory, Air Force
|
.\" Agency (DARPA) and Air Force Research Laboratory, Air Force
|
||||||
.\" Materiel Command, USAF, under agreement number F39502-99-1-0512.
|
.\" Materiel Command, USAF, under agreement number F39502-99-1-0512.
|
||||||
.\"
|
.\"
|
||||||
.Dd June 8, 2015
|
.Dd July 10, 2015
|
||||||
.Dt SUDO @mansectsu@
|
.Dt SUDO @mansectsu@
|
||||||
.Os Sudo @PACKAGE_VERSION@
|
.Os Sudo @PACKAGE_VERSION@
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@ -851,30 +851,41 @@ nor
|
|||||||
.Ev VISUAL
|
.Ev VISUAL
|
||||||
is set.
|
is set.
|
||||||
.It Ev MAIL
|
.It Ev MAIL
|
||||||
In
|
Set to the mail spool of the target user when the
|
||||||
.Fl i
|
.Fl i
|
||||||
mode or when
|
option is specified or when
|
||||||
.Em env_reset
|
.Em env_reset
|
||||||
is enabled in
|
is enabled in
|
||||||
.Em sudoers ,
|
.Em sudoers
|
||||||
set to the mail spool of the target user.
|
(unless
|
||||||
|
.Ev MAIL
|
||||||
|
is present in the
|
||||||
|
.Em env_keep
|
||||||
|
list).
|
||||||
.It Ev HOME
|
.It Ev HOME
|
||||||
Set to the home directory of the target user if
|
Set to the home directory of the target user when the
|
||||||
.Fl i
|
.Fl i
|
||||||
or
|
or
|
||||||
.Fl H
|
.Fl H
|
||||||
are specified,
|
options are specified, when the
|
||||||
.Em env_reset
|
|
||||||
or
|
|
||||||
.Em always_set_home
|
|
||||||
are set in
|
|
||||||
.Em sudoers ,
|
|
||||||
or when the
|
|
||||||
.Fl s
|
.Fl s
|
||||||
option is specified and
|
option is specified and
|
||||||
.Em set_home
|
.Em set_home
|
||||||
is set in
|
is set in
|
||||||
.Em sudoers .
|
.Em sudoers ,
|
||||||
|
when
|
||||||
|
.Em always_set_home
|
||||||
|
is enabled in
|
||||||
|
.Em sudoers ,
|
||||||
|
or when
|
||||||
|
.Em env_reset
|
||||||
|
is enabled in
|
||||||
|
.Em sudoers
|
||||||
|
and
|
||||||
|
.Em HOME
|
||||||
|
is not present in the
|
||||||
|
.Em env_keep
|
||||||
|
list.
|
||||||
.It Ev PATH
|
.It Ev PATH
|
||||||
May be overridden by the security policy.
|
May be overridden by the security policy.
|
||||||
.It Ev SHELL
|
.It Ev SHELL
|
||||||
|
@ -837,9 +837,10 @@ SSUUDDOOEERRSS OOPPTTIIOONNSS
|
|||||||
always_set_home If enabled, ssuuddoo will set the HOME environment variable
|
always_set_home If enabled, ssuuddoo will set the HOME environment variable
|
||||||
to the home directory of the target user (which is root
|
to the home directory of the target user (which is root
|
||||||
unless the --uu option is used). This effectively means
|
unless the --uu option is used). This effectively means
|
||||||
that the --HH option is always implied. Note that HOME
|
that the --HH option is always implied. Note that by
|
||||||
is already set when the _e_n_v___r_e_s_e_t option is enabled, so
|
default, HOME will be set to the home directory of the
|
||||||
_a_l_w_a_y_s___s_e_t___h_o_m_e is only effective for configurations
|
target user when the _e_n_v___r_e_s_e_t option is enabled, so
|
||||||
|
_a_l_w_a_y_s___s_e_t___h_o_m_e only has an effect for configurations
|
||||||
where either _e_n_v___r_e_s_e_t is disabled or HOME is present
|
where either _e_n_v___r_e_s_e_t is disabled or HOME is present
|
||||||
in the _e_n_v___k_e_e_p list. This flag is _o_f_f by default.
|
in the _e_n_v___k_e_e_p list. This flag is _o_f_f by default.
|
||||||
|
|
||||||
@ -2416,4 +2417,4 @@ DDIISSCCLLAAIIMMEERR
|
|||||||
file distributed with ssuuddoo or http://www.sudo.ws/license.html for
|
file distributed with ssuuddoo or http://www.sudo.ws/license.html for
|
||||||
complete details.
|
complete details.
|
||||||
|
|
||||||
Sudo 1.8.14 March 24, 2015 Sudo 1.8.14
|
Sudo 1.8.14 July 10, 2015 Sudo 1.8.14
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
.\" Agency (DARPA) and Air Force Research Laboratory, Air Force
|
.\" Agency (DARPA) and Air Force Research Laboratory, Air Force
|
||||||
.\" Materiel Command, USAF, under agreement number F39502-99-1-0512.
|
.\" Materiel Command, USAF, under agreement number F39502-99-1-0512.
|
||||||
.\"
|
.\"
|
||||||
.TH "SUDOERS" "5" "March 24, 2015" "Sudo @PACKAGE_VERSION@" "File Formats Manual"
|
.TH "SUDOERS" "5" "July 10, 2015" "Sudo @PACKAGE_VERSION@" "File Formats Manual"
|
||||||
.nh
|
.nh
|
||||||
.if n .ad l
|
.if n .ad l
|
||||||
.SH "NAME"
|
.SH "NAME"
|
||||||
@ -1825,13 +1825,13 @@ option is used).
|
|||||||
This effectively means that the
|
This effectively means that the
|
||||||
\fB\-H\fR
|
\fB\-H\fR
|
||||||
option is always implied.
|
option is always implied.
|
||||||
Note that
|
Note that by default,
|
||||||
\fRHOME\fR
|
\fRHOME\fR
|
||||||
is already set when the
|
will be set to the home directory of the target user when the
|
||||||
\fIenv_reset\fR
|
\fIenv_reset\fR
|
||||||
option is enabled, so
|
option is enabled, so
|
||||||
\fIalways_set_home\fR
|
\fIalways_set_home\fR
|
||||||
is only effective for configurations where either
|
only has an effect for configurations where either
|
||||||
\fIenv_reset\fR
|
\fIenv_reset\fR
|
||||||
is disabled or
|
is disabled or
|
||||||
\fRHOME\fR
|
\fRHOME\fR
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
.\" Agency (DARPA) and Air Force Research Laboratory, Air Force
|
.\" Agency (DARPA) and Air Force Research Laboratory, Air Force
|
||||||
.\" Materiel Command, USAF, under agreement number F39502-99-1-0512.
|
.\" Materiel Command, USAF, under agreement number F39502-99-1-0512.
|
||||||
.\"
|
.\"
|
||||||
.Dd March 24, 2015
|
.Dd July 10, 2015
|
||||||
.Dt SUDOERS @mansectform@
|
.Dt SUDOERS @mansectform@
|
||||||
.Os Sudo @PACKAGE_VERSION@
|
.Os Sudo @PACKAGE_VERSION@
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@ -1697,13 +1697,13 @@ option is used).
|
|||||||
This effectively means that the
|
This effectively means that the
|
||||||
.Fl H
|
.Fl H
|
||||||
option is always implied.
|
option is always implied.
|
||||||
Note that
|
Note that by default,
|
||||||
.Ev HOME
|
.Ev HOME
|
||||||
is already set when the
|
will be set to the home directory of the target user when the
|
||||||
.Em env_reset
|
.Em env_reset
|
||||||
option is enabled, so
|
option is enabled, so
|
||||||
.Em always_set_home
|
.Em always_set_home
|
||||||
is only effective for configurations where either
|
only has an effect for configurations where either
|
||||||
.Em env_reset
|
.Em env_reset
|
||||||
is disabled or
|
is disabled or
|
||||||
.Ev HOME
|
.Ev HOME
|
||||||
|
Loading…
x
Reference in New Issue
Block a user