2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-22 09:57:41 +00:00

Document that "-p prompt" overrides SUDO_PROMPT.

This commit is contained in:
Todd C. Miller 2017-07-20 11:44:50 -06:00
parent 37f591d2dd
commit 6b4d871b14
3 changed files with 13 additions and 6 deletions

View File

@ -522,7 +522,8 @@ EENNVVIIRROONNMMEENNTT
SUDO_GID Set to the group ID of the user who invoked sudo. SUDO_GID Set to the group ID of the user who invoked sudo.
SUDO_PROMPT Used as the default password prompt. SUDO_PROMPT Used as the default password prompt unless the --pp option
was specified.
SUDO_PS1 If set, PS1 will be set to its value for the program SUDO_PS1 If set, PS1 will be set to its value for the program
being run. being run.
@ -628,4 +629,4 @@ DDIISSCCLLAAIIMMEERR
file distributed with ssuuddoo or https://www.sudo.ws/license.html for file distributed with ssuuddoo or https://www.sudo.ws/license.html for
complete details. complete details.
Sudo 1.8.21 February 16, 2017 Sudo 1.8.21 Sudo 1.8.21 July 20, 2017 Sudo 1.8.21

View File

@ -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" "February 16, 2017" "Sudo @PACKAGE_VERSION@" "System Manager's Manual" .TH "SUDO" "8" "July 20, 2017" "Sudo @PACKAGE_VERSION@" "System Manager's Manual"
.nh .nh
.if n .ad l .if n .ad l
.SH "NAME" .SH "NAME"
@ -1048,7 +1048,10 @@ Default editor to use in
Set to the group ID of the user who invoked sudo. Set to the group ID of the user who invoked sudo.
.TP 17n .TP 17n
\fRSUDO_PROMPT\fR \fRSUDO_PROMPT\fR
Used as the default password prompt. Used as the default password prompt unless
the
\fB\-p\fR
option was specified.
.TP 17n .TP 17n
\fRSUDO_PS1\fR \fRSUDO_PS1\fR
If set, If set,

View File

@ -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 February 16, 2017 .Dd July 20, 2017
.Dt SUDO @mansectsu@ .Dt SUDO @mansectsu@
.Os Sudo @PACKAGE_VERSION@ .Os Sudo @PACKAGE_VERSION@
.Sh NAME .Sh NAME
@ -965,7 +965,10 @@ Default editor to use in
.It Ev SUDO_GID .It Ev SUDO_GID
Set to the group ID of the user who invoked sudo. Set to the group ID of the user who invoked sudo.
.It Ev SUDO_PROMPT .It Ev SUDO_PROMPT
Used as the default password prompt. Used as the default password prompt unless
the
.Fl p
option was specified.
.It Ev SUDO_PS1 .It Ev SUDO_PS1
If set, If set,
.Ev PS1 .Ev PS1