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 08:01:09 +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]:53651) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jNrGP-0002mS-2J for bug-guix@gnu.org; Mon, 13 Apr 2020 01:04:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jNrGN-0004fl-Ei for bug-guix@gnu.org; Mon, 13 Apr 2020 01:04:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:47574) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jNrGL-0004fQ-UL for bug-guix@gnu.org; Mon, 13 Apr 2020 01:04:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jNrGL-0006I5-Qk for bug-guix@gnu.org; Mon, 13 Apr 2020 01:04:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: 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: Alexandru-Sergiu Marton , Efraim Flashner , Alexandru-Sergiu Marton Cc: 40550@debbugs.gnu.org Just a few more details. If I boot into a system config with bash as the default shell, this is my $PATH: /home/brown/.guix-profile/bin:/home/brown/.guix-profile/sbin:/home/brown/bi= n:/home/brown/.local/bin:/home/brown/.guix-profile/bin:/home/brown/.guix-pr= ofile/sbin:/run/setuid-programs:/home/brown/.config/guix/current/bin:/home/= brown/.guix-profile/bin:/home/brown/.guix-profile/sbin:/run/current-system/= profile/bin:/run/current-system/profile/sbin If I get zsh through an environment, my PATH still has /run/setuid-programs in it. [brown@121408 ~]$ guix environment --ad-hoc zsh [brown@121408 ~][env]$ zsh [brown@121408 ~]$ echo $PATH /home/brown/.guix-profile/bin:/home/brown/.guix-profile/sbin:/gnu/store/anb= 9bk6qbwhblfr6fqcv6iiq8scyng1i-profile/bin:/home/brown/.guix-profile/bin:/ho= me/brown/.guix-profile/sbin:/home/brown/bin:/home/brown/.local/bin:/home/br= own/.guix-profile/bin:/home/brown/.guix-profile/sbin:/run/setuid-programs:/= home/brown/.config/guix/current/bin:/home/brown/.guix-profile/bin:/home/bro= wn/.guix-profile/sbin:/run/current-system/profile/bin:/run/current-system/p= rofile/sbin [brown@121408 ~]$ which -a sudo /run/setuid-programs/sudo /run/current-system/profile/bin/sudo So my problem happens only when setting zsh as an account's default shell.