From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Alexandru-Sergiu Marton" Subject: bug#40550: zsh: sudo is not setuid Date: Mon, 13 Apr 2020 07:46:58 +0300 Message-ID: References: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:52855) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jNr7f-00010y-Nz for bug-guix@gnu.org; Mon, 13 Apr 2020 00:55:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jNr7e-0001E0-R2 for bug-guix@gnu.org; Mon, 13 Apr 2020 00:55:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:47563) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jNr7e-0001Dw-Ec for bug-guix@gnu.org; Mon, 13 Apr 2020 00:55:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jNr7e-000633-CY for bug-guix@gnu.org; Mon, 13 Apr 2020 00:55:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <20200411193821.GB2191@E5400> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane-mx.org@gnu.org Sender: "bug-Guix" To: Efraim Flashner , Alexandru-Sergiu Marton Cc: 40550@debbugs.gnu.org On Sun Apr 12, 2020 at 1:38 AM PST, Efraim Flashner wrote: > Do you have sudo installed in a profile? /run/setuid-programs/sudo > should be the first 'sudo' in your PATH regardless of the shell. What's > the contents of your $PATH? This is my $PATH in zsh: /home/brown/bin:/home/brown/.local/bin:/home/brown/.guix-profile/bin:/home/= brown/.guix-profile/sbin:/run/current-system/profile/bin > (ins)efraim@E5400 ~$ which -a sudo > /run/setuid-programs/sudo > /run/current-system/profile/bin/sudo $ which -a sudo /run/current-system/profile/bin/sudo BUT! $ ls /run/setuid-programs/ dbus-daemon-launch-helper newuidmap pkexec sudoedit fusermount passwd polkit-agent-helper-1 umount mount ping su newgidmap ping6 sudo So it looks like it's a problem with my PATH. While in bash I don't append /run/setuid-programs to it manually, yet bash recognizes the setuid programs. I'll probably add /run/setuid-programs by hand but I'm wondering why doesn't it work by default. Thanks, Sergiu