bug-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#31814: setuid programs are not first in PATH


From: Julien Lepiller
Subject: bug#31814: setuid programs are not first in PATH
Date: Wed, 13 Jun 2018 17:06:14 +0200
User-agent: Roundcube Webmail/1.3.6

Le 2018-06-13 17:05, Joshua Branson a écrit :
Clément Lassieur <address@hidden> 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]