Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: Ulrich Mueller <ulm@g.o>
Cc: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] rfc: adding sbin directories to PATH for all users
Date: Wed, 25 Nov 2015 18:18:00
Message-Id: 20151125191738.205f8375.mgorny@gentoo.org
In Reply to: Re: [gentoo-dev] rfc: adding sbin directories to PATH for all users by Ulrich Mueller
1 On Wed, 25 Nov 2015 19:05:13 +0100
2 Ulrich Mueller <ulm@g.o> wrote:
3
4 > >>>>> On Wed, 25 Nov 2015, Kristian Fiskerstrand wrote:
5 >
6 > > On 11/25/2015 06:10 PM, William Hubbs wrote:
7 > >> I would like for us to discuss adding the sbin directories to PATH
8 > >> for all users.
9 >
10 > > This sounds strange to me, if it should be executable by all users
11 > > it likely shouldn't be in sbin in the first place but in bin. In any
12 > > case; I don't see any good reason to change the traditional behavior
13 > > of sbin only being in path for root.
14 >
15 > +1
16 >
17 > The sbin directories are separate from bin for the very reason that
18 > binaries in there (which are only usable with elevated privileges) can
19 > be excluded from normal users' PATH.
20
21 Binaries like blkid, btrfs, getcap, sensors, swapon and various tools
22 from net-tools, iputils, wireless-tools... and I really have better
23 things to do than list all tools that landed in sbin for some fun
24 reason yet work for normal users.
25
26 But well, I'm the weird one wanting to be able to check how much free
27 space I've got without going through hoops.
28
29 --
30 Best regards,
31 Michał Górny
32 <http://dev.gentoo.org/~mgorny/>

Replies