Gentoo Archives: gentoo-dev

From: William Hubbs <williamh@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] newsitem: baselayout 2.5 changes
Date: Thu, 08 Feb 2018 22:34:18
Message-Id: 20180208223355.GA508@whubbs1.gaikai.biz
In Reply to: Re: [gentoo-dev] newsitem: baselayout 2.5 changes by "M. J. Everitt"
1 All,
2
3 here is a link to an old, but brief discussion about this.
4
5 https://archives.gentoo.org/gentoo-dev/message/2fc1f62c7cf225787fe52f4dace7368c
6
7 I think we have talked about this several other times, but not done
8 anything about it.
9
10 On Thu, Feb 08, 2018 at 10:17:59PM +0000, M. J. Everitt wrote:
11 >
12 >
13 > On 08/02/18 22:13, William Hubbs wrote:
14 > > On Thu, Feb 08, 2018 at 03:55:02PM -0500, Mike Gilbert wrote:
15 > >> However, there are plenty of examples of commands that normal users
16 > >> may run from sbin. Moving these commands often causes problems for
17 > >> packages that either hard code absolute paths, or detect paths at
18 > >> build time. I think it would be less disruptive to add sbin to PATH
19 > >> than it would be to try and "fix" all the packages that install
20 > >> commands in the wrong place.
21 > > There are no reasons to remove the *sbin directories from PATH; I know
22 > > of no other distros that do this.
23 > >
24 > > William
25 > >
26 > Pardon my ignorance, but does that mean you are essentially relying on
27 > file system features/permissions and security settings to enforce
28 > correct use of system tools?! Or is this just to make sudo/etc commands
29 > 'more convenient' ?!
30
31 The basic problem is that what goes in *bin vs *sbin is quite arbitrary
32 and the best way to fix it is to make all of the *bin and *sbin
33 directories accessible to all users.
34
35 You can't rely on a path to separate system-only programs from
36 programs that users might want to run, and some programs can be run by
37 users to look around but not change things.
38
39 Here is one non-gentoo source discussing this.
40
41 http://lists.busybox.net/pipermail/busybox/2010-December/074114.html
42
43 Even if we don't adopt the usr merge in Gentoo Linux as default, removing *sbin
44 from the path doesn't make sense.
45
46 William
47
48 >
49 > MJE
50 >

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-dev] newsitem: baselayout 2.5 changes "M. J. Everitt" <m.j.everitt@×××.org>
Re: [gentoo-dev] newsitem: baselayout 2.5 changes Benda Xu <heroxbd@g.o>