The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
From: Grant Taylor via TUHS <tuhs@minnie.tuhs.org>
To: tuhs@minnie.tuhs.org
Subject: Re: [TUHS] The origin of /home
Date: Wed, 10 Oct 2018 11:08:58 -0600	[thread overview]
Message-ID: <190511dd-f19f-7b76-cf8c-2663b81bad22@spamtrap.tnetconsulting.net> (raw)
In-Reply-To: <1539182625.28839.for-standards-violators@oclsc.org>

[-- Attachment #1: Type: text/plain, Size: 5008 bytes --]

On 10/10/2018 08:43 AM, Norman Wilson wrote:
> The first UNIX system I ever used, ca. 1980, had users' home directories 
> in /u.  I suspect it was that way (as suggested in some earlier messages) 
> just for storage management: separate file system from /usr.

I sort of like /u because I'm lazy and it's shorter than /usr or /home. 
}:-)

> I've carried /u around with me ever since to other systems I've set up 
> from scratch, except in my home environment where I've made a radical 
> departure: everything that isn't part of the base OS is in a tree 
> rooted at /con, so home directories are /con/u.  /con was `constant,' 
> inspired by /var, meaning stuff that should be preserved when the OS 
> is reinstalled--everything else should come from installation media or 
> configuration management.

Save for /etc, I like the spirit of /con.

> But in any case there's nothing especially novel about moving users' home 
> directories out of /usr, and since it's UNIX, nothing that says there has 
> to be any standard at all.

The wonderful thing about standards is that we have so many to choose from.

> On the systems I am currently paid to help run, most users have 
> home-directory names like /h/u12/c4/00/c4ntest.  There is no attempt to 
> glue together a single name hierarchy; we have in excess of 17000 users 
> so that would be something of a mess.  (I guess enormous directories 
> aren't the resource pigs they used to be,

I don't know if it's still the performance penalty that it used to be, 
or if the systems are just faster and / or better and overcoming said 
performance penalty of big directories.

> though symlinks are just as bad as they have ever been.)

Would you please elaborate on what you mean by that?

> There's the ~user shell syntax for those who like that; I don't, but 
> I have a little shell script in my personal bin directory so I can do 
> things like ls `home c4ntest`; it all just works.

I use tilde somewhat frequently, particularly when I want to manipulate 
contents from someone else's home directory.  (Usually copy something 
from my directory elsewhere when running as root.  I.e. scp a file to my 
home, then move said file to where it belongs, which my normal user 
can't write to.)

I've done some other things like your "home" script (or variables).  But 
I found them lacking when wanting to do file manipulations like above.

> I once thought of writing a paper entitled `/usr and /etc considered 
> harmful,' in which I would have proposed:

I would be interested in reading such a paper.

> a.  It no longer matters a whit whether the (real) root file system can 
> fit into a 5MB slice of the disk or the like, so just merge everything 
> that spilled into /usr in the tiny-disk days back into the root where 
> it belongs.

Are you talking about just things like /usr ~> /home or all other 
mounted file systems too?

I still see a reason to have other files systems, particularly if they 
come from block devices with different storage criteria.  I.e. RAID 1 
for root, RAID 5 for user data, RAID 0 for news spool & HTTP cache, etc.

> b.  /etc is largely junk.  Executables have long since moved into /sbin. 
> Pretty much everything else that's there belongs (according to the 
> original scheme, not the latter-day complications inflicted by those 
> who didn't understand) in /lib.

I never liked executable (think binaries vs scripts) in /etc or /lib. 
Maybe it's just my ignorance.

I've never had a really good grasp on the difference between bin and 
sbin.  Different people have different explanations.  Then there's 
Solaris sym-linking /bin to /usr/bin.

(I think) I get the /{bin,lib,…} vs /usr/{bin,lib,…} vs 
/usr/local/{bin,lib,…}.  At least / being what's required to boot strap 
and bring the system up to run level 1 (or comparable).  Then /usr being 
the rest of the things installed by the OS vendor.  With /usr/local 
being where the site would install all of their customizations.

To me, this is more about scoping of who's responsible for what and what 
it's primary purpose is.

Given Norman's comments, I could see how / and /usr could be merged back 
together.  Then I suppose that they could be restructured to remove /usr.

Question:  Where do the following things belong, if not in /etc?

  · passwd / shadow
  · group / gshadow
  · inittab

In other words, where do system configuration files live?  —  IMHO they 
should be separate from the location of the files the programs consist 
of.  Much like /con above allowing most everything else to be replaced 
wholesale.

> Unfortunately all the quick hacks and poorly-considered tweaks of the 
> past have long since been cast in stone by widespread convention, so 
> it's fruitless to try to clean any of this up.

That doesn't make it any less of a thought experiment or enlightening 
discussion.



-- 
Grant. . . .
unix || die


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 3982 bytes --]

  parent reply	other threads:[~2018-10-10 17:09 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-10 14:43 Norman Wilson
2018-10-10 16:26 ` arnold
2018-10-11 19:10   ` Lyndon Nerenberg
2018-10-10 17:08 ` Grant Taylor via TUHS [this message]
2018-10-11  0:22   ` Steve Nickolas
2018-10-11  2:33     ` David Arnold
  -- strict thread matches above, loose matches on Subject: below --
2018-10-10 15:26 Noel Chiappa
2018-10-10 15:45 ` Clem Cole
2018-10-10 15:48   ` David
2018-10-13  6:58   ` Michael Kjörling
2018-10-12  0:15 ` Dave Horsfall
2018-09-28  2:39 Doug McIlroy
2018-09-27 23:14 Noel Chiappa
2018-09-28  5:27 ` Lars Brinkhoff
2018-09-27 15:33 Noel Chiappa
2018-09-27 20:15 ` Dan Cross
2018-09-27 14:31 Noel Chiappa
2018-09-27 12:08 Cág
2018-09-27 12:30 ` Alec Muffett
2018-09-27 12:58 ` Donald ODona
2018-09-27 13:54   ` John P. Linderman
2018-09-27 14:09     ` Ronald Natalie
2018-09-27 14:18     ` Jon Forrest
2018-09-27 14:28       ` Arrigo Triulzi
2018-09-27 15:36         ` Jon Forrest
2018-09-27 15:54           ` Arrigo Triulzi
2018-09-27 18:49             ` Jon Forrest
2018-09-28  0:50               ` Theodore Y. Ts'o
2018-10-01  1:52                 ` Lyndon Nerenberg
2018-10-10  2:38               ` Dave Horsfall
2018-10-10  3:07                 ` Grant Taylor via TUHS
2018-09-27 17:33   ` Donald ODona
2018-09-27 14:47 ` Dan Cross
2018-09-27 17:20   ` arnold
2018-09-27 20:42   ` Cág
2018-09-27 21:07     ` Dan Cross
2018-09-27 22:04       ` Clem Cole
2018-09-27 22:18         ` Henry Bent
2018-09-28  8:33   ` Tony Finch
2018-09-28 18:23     ` Jeremy C. Reed
2018-09-28 16:02 ` Nemo
2018-09-28 16:15   ` Grant Taylor via TUHS
2018-09-28 17:28     ` Arthur Krewat
2018-09-28 19:38       ` Grant Taylor via TUHS
2018-09-28 19:47       ` Grant Taylor via TUHS
2018-09-28 20:30         ` Arthur Krewat
2018-09-28 20:00     ` Nemo
2018-09-28 21:07       ` Grant Taylor via TUHS

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=190511dd-f19f-7b76-cf8c-2663b81bad22@spamtrap.tnetconsulting.net \
    --to=tuhs@minnie.tuhs.org \
    --cc=gtaylor@tnetconsulting.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).