Skip to content

Commit afb09e0

Browse files
committed
Sudo runs the command in a pty by default in 1.9.14 and above.
1 parent 4da1f37 commit afb09e0

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

docs/sudo.man.in

+5-1
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 "SUDO" "@mansectsu@" "January 16, 2023" "Sudo @PACKAGE_VERSION@" "System Manager's Manual"
28+
.TH "SUDO" "@mansectsu@" "June 18, 2023" "Sudo @PACKAGE_VERSION@" "System Manager's Manual"
2929
.nh
3030
.if n .ad l
3131
.SH "NAME"
@@ -990,6 +990,8 @@ process passes the
990990
\fIcommand\fR's
991991
exit status to the security policy's close function, as well as the
992992
close function of any configured audit plugin, and exits.
993+
This mode is the default for sudo versions 1.9.14 and above when using
994+
the sudoers policy.
993995
.PP
994996
If no pty is used,
995997
\fBsudo\fR
@@ -1031,6 +1033,8 @@ Both
10311033
and
10321034
\fIpam_setcred\fR
10331035
are enabled by default on systems using PAM.
1036+
This mode is the default for sudo versions prior to 1.9.14 when using
1037+
the sudoers policy.
10341038
.PP
10351039
On systems that use PAM, the security policy's close function
10361040
is responsible for closing the PAM session.

docs/sudo.mdoc.in

+5-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
.nr BA @BAMAN@
2525
.nr LC @LCMAN@
2626
.nr PS @PSMAN@
27-
.Dd January 16, 2023
27+
.Dd June 18, 2023
2828
.Dt SUDO @mansectsu@
2929
.Os Sudo @PACKAGE_VERSION@
3030
.Sh NAME
@@ -934,6 +934,8 @@ process passes the
934934
.Ar command Ns 's
935935
exit status to the security policy's close function, as well as the
936936
close function of any configured audit plugin, and exits.
937+
This mode is the default for sudo versions 1.9.14 and above when using
938+
the sudoers policy.
937939
.Pp
938940
If no pty is used,
939941
.Nm
@@ -975,6 +977,8 @@ Both
975977
and
976978
.Em pam_setcred
977979
are enabled by default on systems using PAM.
980+
This mode is the default for sudo versions prior to 1.9.14 when using
981+
the sudoers policy.
978982
.Pp
979983
On systems that use PAM, the security policy's close function
980984
is responsible for closing the PAM session.

0 commit comments

Comments
 (0)