From afb09e0044109a4c5f3ed30d7905b90527bb340d Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sun, 18 Jun 2023 08:08:32 -0600 Subject: [PATCH] Sudo runs the command in a pty by default in 1.9.14 and above. --- docs/sudo.man.in | 6 +++++- docs/sudo.mdoc.in | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/docs/sudo.man.in b/docs/sudo.man.in index 453de08bc..3364b4b17 100644 --- a/docs/sudo.man.in +++ b/docs/sudo.man.in @@ -25,7 +25,7 @@ .nr BA @BAMAN@ .nr LC @LCMAN@ .nr PS @PSMAN@ -.TH "SUDO" "@mansectsu@" "January 16, 2023" "Sudo @PACKAGE_VERSION@" "System Manager's Manual" +.TH "SUDO" "@mansectsu@" "June 18, 2023" "Sudo @PACKAGE_VERSION@" "System Manager's Manual" .nh .if n .ad l .SH "NAME" @@ -990,6 +990,8 @@ process passes the \fIcommand\fR's exit status to the security policy's close function, as well as the close function of any configured audit plugin, and exits. +This mode is the default for sudo versions 1.9.14 and above when using +the sudoers policy. .PP If no pty is used, \fBsudo\fR @@ -1031,6 +1033,8 @@ Both and \fIpam_setcred\fR are enabled by default on systems using PAM. +This mode is the default for sudo versions prior to 1.9.14 when using +the sudoers policy. .PP On systems that use PAM, the security policy's close function is responsible for closing the PAM session. diff --git a/docs/sudo.mdoc.in b/docs/sudo.mdoc.in index 61d43df3c..893bda214 100644 --- a/docs/sudo.mdoc.in +++ b/docs/sudo.mdoc.in @@ -24,7 +24,7 @@ .nr BA @BAMAN@ .nr LC @LCMAN@ .nr PS @PSMAN@ -.Dd January 16, 2023 +.Dd June 18, 2023 .Dt SUDO @mansectsu@ .Os Sudo @PACKAGE_VERSION@ .Sh NAME @@ -934,6 +934,8 @@ process passes the .Ar command Ns 's exit status to the security policy's close function, as well as the close function of any configured audit plugin, and exits. +This mode is the default for sudo versions 1.9.14 and above when using +the sudoers policy. .Pp If no pty is used, .Nm @@ -975,6 +977,8 @@ Both and .Em pam_setcred are enabled by default on systems using PAM. +This mode is the default for sudo versions prior to 1.9.14 when using +the sudoers policy. .Pp On systems that use PAM, the security policy's close function is responsible for closing the PAM session.