From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: bug#40550: zsh: sudo is not setuid Date: Mon, 13 Apr 2020 13:55:55 -0400 Message-ID: <20200413175555.GB23262@jasmine.lan> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:46337) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jO3KQ-0005mu-QQ for bug-guix@gnu.org; Mon, 13 Apr 2020 13:57:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jO3KP-00043i-TX for bug-guix@gnu.org; Mon, 13 Apr 2020 13:57:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49168) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jO3KP-00043a-MC for bug-guix@gnu.org; Mon, 13 Apr 2020 13:57:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jO3KP-0007SE-Kj for bug-guix@gnu.org; Mon, 13 Apr 2020 13:57:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Content-Disposition: inline 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 Cc: Alexandru-Sergiu Marton , 40550@debbugs.gnu.org On Mon, Apr 13, 2020 at 07:46:58AM +0300, Alexandru-Sergiu Marton wrote: > 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 Setting up Zsh should definitely work when creating a new user's home directory, but maybe it doesn't do the right thing when changing a user's shell after the home directory has already been created. We should look into that. Please copy the contents of '/etc/skel/.zprofile' to your zprofile file and check for the /run/setuid-programs in your $PATH after logging in again with `zsh --login`.