NetBSD Problem Report #58675

From www@netbsd.org  Tue Sep 17 04:49:59 2024
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
	 client-signature RSA-PSS (2048 bits) client-digest SHA256)
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id E7D521A9244
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 17 Sep 2024 04:49:58 +0000 (UTC)
Message-Id: <20240917044958.044001A9246@mollari.NetBSD.org>
Date: Tue, 17 Sep 2024 04:49:57 +0000 (UTC)
From: jkandow@yahoo.com
Reply-To: jkandow@yahoo.com
To: gnats-bugs@NetBSD.org
Subject: sudo executing a "su -" command is broken
X-Send-Pr-Version: www-1.0

>Number:         58675
>Category:       pkg
>Synopsis:       sudo executing a "su -" command is broken
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 17 04:50:00 +0000 2024
>Last-Modified:  Tue Sep 17 06:00:02 +0000 2024
>Originator:     Jesse Andow
>Release:        NetBSD 9 and 10
>Organization:
>Environment:
NetBSD 10.0 NetBSD 10.0 (GENERIC) #0: Thu Mar 28 80:33:33 UTC 2024  mkrepro@mkrepro.NetBAD.org:/usr/src/sys/arch/i386/compile/GENERIC i386
>Description:
Entering the command:
  sudo su -
Causes a Suspended process:
  [1] + Suspended (signal)      sudo su -

>How-To-Repeat:
Install sudo using the pkg_add command
Issue the command sudo su -
>Fix:
Unknown

>Audit-Trail:
From: Kimmo Suominen <kim@netbsd.org>
To: Jesse Andow <jkandow@yahoo.com>
Cc: gnats-bugs@netbsd.org
Subject: Re: pkg/58675: sudo executing a "su -" command is broken
Date: Tue, 17 Sep 2024 08:55:35 +0300

 Hi Jesse,

 As a workaround, login on a terminal other than the console, or add the
 following to the sudoers configuration with visudo:

 	Defaults !use_pty

 The default for use_pty changed in sudo 1.9.14:

 	The use_pty sudoers option is now enabled by default. To restore
 	the historic behavior where a command is run in the user’s
 	terminal, add Defaults !use_pty to the sudoers file. GitHub
 	issue #258 <https://github.com/sudo-project/sudo/issues/228>.

 Kind regards,
 + Kimmo

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2024 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.