From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joshua Branson Subject: bug#31814: setuid programs are not first in PATH Date: Thu, 14 Jun 2018 10:01:07 -0400 Message-ID: <87vaaltql8.fsf@fastmail.com> References: <87602mu57o.fsf@lassieur.org> <87wov2afr2.fsf@fastmail.com> <877en24tf2.fsf@lassieur.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53291) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fTSjO-0005uu-El for bug-guix@gnu.org; Thu, 14 Jun 2018 09:56:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fTSjL-00079l-Bf for bug-guix@gnu.org; Thu, 14 Jun 2018 09:56:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:40376) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fTSjL-00079h-7n for bug-guix@gnu.org; Thu, 14 Jun 2018 09:56:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fTSjL-0002Eg-09 for bug-guix@gnu.org; Thu, 14 Jun 2018 09:56:03 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53142) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fTSis-0005db-F8 for bug-guix@gnu.org; Thu, 14 Jun 2018 09:55:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fTSip-0006ze-BH for bug-guix@gnu.org; Thu, 14 Jun 2018 09:55:34 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:53495) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fTSip-0006yw-1g for bug-guix@gnu.org; Thu, 14 Jun 2018 09:55:31 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id B03E821ADE for ; Thu, 14 Jun 2018 09:55:28 -0400 (EDT) Received: from dobby (unknown [72.12.220.132]) by mail.messagingengine.com (Postfix) with ESMTPA id 45FAF102BC for ; Thu, 14 Jun 2018 09:55:28 -0400 (EDT) In-Reply-To: <877en24tf2.fsf@lassieur.org> ("=?UTF-8?Q?Cl=C3=A9ment?= Lassieur"'s message of "Wed, 13 Jun 2018 17:06:57 +0200") 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 Cl=C3=A9ment Lassieur writes: > Joshua Branson writes: > >> Cl=C3=A9ment 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:/ru= n/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? > > Yes, but ~/.guix-profile/bin/ping (which is the one being chosen) > doesn't have the setuid flag, so it doesn't work. Oh. I didn't realize that the ping command was a setuid program. cool.