From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Lepiller Subject: bug#31814: setuid programs are not first in PATH Date: Wed, 13 Jun 2018 17:06:14 +0200 Message-ID: <235798309c2cace8763de6f187829152@lepiller.eu> References: <87602mu57o.fsf@lassieur.org> <87wov2afr2.fsf@fastmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56708) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fT7Ma-0004IC-4Q for bug-guix@gnu.org; Wed, 13 Jun 2018 11:07:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fT7MU-0003hy-8M for bug-guix@gnu.org; Wed, 13 Jun 2018 11:07:08 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:38860) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fT7MU-0003h7-4O for bug-guix@gnu.org; Wed, 13 Jun 2018 11:07:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fT7MT-0007nz-Ra for bug-guix@gnu.org; Wed, 13 Jun 2018 11:07:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56471) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fT7Lr-0003qx-Io for bug-guix@gnu.org; Wed, 13 Jun 2018 11:06:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fT7Ln-0001j2-8g for bug-guix@gnu.org; Wed, 13 Jun 2018 11:06:23 -0400 Received: from lepiller.eu ([2a00:5884:8208::1]:43510) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fT7Lm-0001Zo-Ul for bug-guix@gnu.org; Wed, 13 Jun 2018 11:06:19 -0400 Received: from webmail.lepiller.eu (static-176-182-42-79.ncc.abo.bbox.fr [176.182.42.79]) by lepiller.eu (OpenSMTPD) with ESMTPSA id 9b68a32e (TLSv1.2:ECDHE-RSA-CHACHA20-POLY1305:256:NO) for ; Wed, 13 Jun 2018 15:08:48 +0000 (UTC) In-Reply-To: <87wov2afr2.fsf@fastmail.com> 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.org@gnu.org Sender: "bug-Guix" To: 31814@debbugs.gnu.org Le 2018-06-13 17:05, Joshua Branson a écrit : > Clément Lassieur writes: > >> Hi, >> >> sourcing /etc/profile >> >> - prepends /run/setuid-programs to $PATH >> - then sources $HOME/.guix-profile/etc/profile >> >> and sourcing $HOME/.guix-profile/etc/profile >> >> - prepends $HOME/.guix-profile/bin to $PATH >> - prepends $HOME/.guix-profile/sbin to $PATH >> >> so in the end, $PATH looks like: >> >> ~/.config/guix/current/bin:~/.guix-profile/bin:~/.guix-profile/sbin:/run/setuid-programs:... >> >> and a command like 'ping' is found in ~/.guix-profile/bin, which makes >> it unusable. > > I'm probably being really silly, but shouldn't it still work? I mean > ~/.guix-profile/bin is still in your path right? The ping from ~/.guix-profile/bin is not setuid, contrary to the ping in /run/setuid-programs. This is necessary for users to run ping. > >> >> Clément