Gentoo Archives: gentoo-dev

From: splite-gentoo@××××××××××××××××.edu
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] rfc: adding sbin directories to PATH for all users
Date: Wed, 25 Nov 2015 20:12:43
Message-Id: 20151125201232.GO20646@sigint.cs.purdue.edu
In Reply to: Re: [gentoo-dev] rfc: adding sbin directories to PATH for all users by Ulrich Mueller
1 On Wed, Nov 25, 2015 at 07:51:55PM +0100, Ulrich Mueller wrote:
2 > >>>>> On Wed, 25 Nov 2015, William Hubbs wrote:
3 >> From what I've read, the traditional difference between bin and sbin
4 >> was that sbin means static-bin and everything stored in there was to
5 >> be able to come up without libraries.
6 >
7 > Source/reference for this?
8
9 Some of us are old enough to remember when it happened, sonny. It was
10 Sun's idea. Disks were expensive, so they wanted as much of the OS to be
11 mountable read-only via NFS as possible (remember diskless workstations?
12 no, you probably don't), so they moved /bin and /lib to /usr and replaced
13 them with symlinks. /sbin was created to hold the necessary binaries
14 to get /usr mounted via NFS at boot. They had to be statically-linked
15 because all the shared libraries were in /usr-- hence the "s" in "sbin".
16
17 If you really want a reference, here you go (page 7):
18
19 http://chiclassiccomp.org/docs/content/computing/Sun/800-1731-10_SunOS4.0ChangeNotes9May88.pdf
20
21 >> As mgorny was talking about earlier, a good chunk of what is in sbin
22 >> *can* be run by normal users.
23 >
24 > Then it shouldn't be in sbin, in the first place. That's a separate
25 > discussion though.
26
27 Bollocks. The whole "/sbin is for admins" meme is an after-the-fact
28 fabrication by those too young to remember the original purpose for it.
29 (Unfortunately, that included people at Sun.)
30
31 Now, get off my lawn.