From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Alexandru-Sergiu Marton" Subject: bug#40550: zsh: sudo is not setuid Date: Sat, 11 Apr 2020 13:10:17 +0300 Message-ID: Reply-To: Alexandru-Sergiu Marton Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:43922) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jNDG3-0003sD-3s for bug-guix@gnu.org; Sat, 11 Apr 2020 06:21:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jNDG2-00062D-8k for bug-guix@gnu.org; Sat, 11 Apr 2020 06:21:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44633) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jNDG2-000621-54 for bug-guix@gnu.org; Sat, 11 Apr 2020 06:21:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jNDG2-00054w-0w for bug-guix@gnu.org; Sat, 11 Apr 2020 06:21:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:43838) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jNDFJ-0003Uw-7r for bug-guix@gnu.org; Sat, 11 Apr 2020 06:20:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jNDFH-0005JL-VT for bug-guix@gnu.org; Sat, 11 Apr 2020 06:20:16 -0400 Received: from mout02.posteo.de ([185.67.36.66]:33719) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jNDFH-0005Fd-Ft for bug-guix@gnu.org; Sat, 11 Apr 2020 06:20:15 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id BF8442400FC for ; Sat, 11 Apr 2020 12:20:12 +0200 (CEST) Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 48zrVN17bVz9rxS for ; Sat, 11 Apr 2020 12:20:11 +0200 (CEST) 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: 40550@debbugs.gnu.org Hi, I changed my default shell to zsh with the following line added to my user-account record in my config.scm: (shell #~(string-append #$zsh "/bin/zsh")) After reconfiguring the system and rebooting, when I try to run sudo or su (I guess this problem appears for every thing in %setuid-programs), I get a message saying it isn't actually a setuid program. I'm writing this from a reconfigured system started at the same point as the zsh one started, but with bash. Here I don't have that problem -- setuid programs work as expected. Steps to reproduce: - $ guix pull - Change the default shell to zsh in your config.scm, as presented above. - $ sudo guix system reconfigure config.scm - Reboot. - Try to run sudo or su. It should give you an error. Cheers, Sergiu