atom feed97 messages in org.freebsd.freebsd-questionsRe: /usr/home vs /home
FromSent OnAttachments
Robison, DaveFeb 17, 2012 2:05 pm 
Chuck SwigerFeb 17, 2012 2:17 pm 
Devin TeskeFeb 17, 2012 2:34 pm 
Maxim KhitrovFeb 17, 2012 2:40 pm 
Douglas CarmichaelFeb 17, 2012 2:42 pm 
PolytroponFeb 17, 2012 2:46 pm 
Jerry McAllisterFeb 17, 2012 2:48 pm 
Douglas CarmichaelFeb 17, 2012 2:50 pm 
Jerry McAllisterFeb 17, 2012 2:53 pm 
Da RockFeb 17, 2012 2:54 pm 
Devin TeskeFeb 17, 2012 3:11 pm 
Julian H. StaceyFeb 17, 2012 3:19 pm 
PolytroponFeb 17, 2012 3:22 pm 
Robison, DaveFeb 17, 2012 3:24 pm 
Da RockFeb 17, 2012 3:29 pm 
Chris HillFeb 17, 2012 3:49 pm 
Chuck SwigerFeb 17, 2012 3:55 pm 
Devin TeskeFeb 17, 2012 4:02 pm 
Robison, DaveFeb 17, 2012 4:09 pm 
Devin TeskeFeb 17, 2012 4:11 pm 
Chuck SwigerFeb 17, 2012 4:40 pm 
Devin TeskeFeb 17, 2012 4:54 pm 
Da RockFeb 17, 2012 4:54 pm 
Da RockFeb 17, 2012 4:59 pm 
Devin TeskeFeb 17, 2012 5:05 pm 
Devin TeskeFeb 17, 2012 5:09 pm 
Chuck SwigerFeb 17, 2012 5:13 pm 
David BrodbeckFeb 17, 2012 5:17 pm 
Da RockFeb 17, 2012 5:17 pm 
Doug HardieFeb 17, 2012 5:50 pm 
Erich DollanskyFeb 17, 2012 6:08 pm 
Daniel StaalFeb 17, 2012 6:16 pm 
Da RockFeb 17, 2012 7:16 pm 
Leslie JensenFeb 17, 2012 9:44 pm 
Lars EighnerFeb 17, 2012 10:05 pm 
Robert BonomiFeb 17, 2012 10:32 pm 
Robert BonomiFeb 17, 2012 11:15 pm 
Erich DollanskyFeb 17, 2012 11:47 pm 
Doug HardieFeb 17, 2012 11:54 pm 
Matthew SeamanFeb 18, 2012 12:39 am 
PolytroponFeb 18, 2012 2:12 am 
PolytroponFeb 18, 2012 2:22 am 
Da RockFeb 18, 2012 2:43 am 
Damien FleuriotFeb 18, 2012 3:06 am 
Damien FleuriotFeb 18, 2012 3:10 am 
Matthew SeamanFeb 18, 2012 3:23 am 
Da RockFeb 18, 2012 3:36 am 
PolytroponFeb 18, 2012 3:39 am 
Da RockFeb 18, 2012 3:56 am 
Matthew SeamanFeb 18, 2012 5:38 am 
Da RockFeb 18, 2012 5:47 am 
Matthew SeamanFeb 18, 2012 6:28 am 
Robert BonomiFeb 18, 2012 6:45 am 
RWFeb 18, 2012 6:54 am 
Da RockFeb 18, 2012 6:54 am 
PolytroponFeb 18, 2012 8:26 am 
Jerry McAllisterFeb 18, 2012 1:06 pm 
Jerry McAllisterFeb 18, 2012 1:33 pm 
Michael SierchioFeb 18, 2012 2:45 pm 
Matthew StoryFeb 18, 2012 3:08 pm 
Daniel StaalFeb 18, 2012 3:10 pm 
Michael SierchioFeb 18, 2012 3:31 pm 
Erich DollanskyFeb 18, 2012 5:03 pm 
Jerry McAllisterFeb 18, 2012 6:30 pm 
Erich DollanskyFeb 18, 2012 7:54 pm 
Carl JohnsonFeb 18, 2012 8:39 pm 
Erich DollanskyFeb 18, 2012 9:26 pm 
Stephen CookFeb 18, 2012 11:21 pm 
Julian H. StaceyFeb 19, 2012 6:29 am 
Daniel StaalFeb 19, 2012 8:10 am 
parvFeb 19, 2012 8:43 am 
Julian H. StaceyFeb 19, 2012 10:37 am 
Da RockFeb 20, 2012 6:44 am 
Jerry McAllisterFeb 20, 2012 6:47 am 
Jerry McAllisterFeb 20, 2012 6:55 am 
Jerry McAllisterFeb 20, 2012 6:58 am 
Julian H. StaceyFeb 20, 2012 8:14 am 
Jerry McAllisterFeb 20, 2012 8:34 am 
Devin TeskeFeb 20, 2012 8:36 am 
Julian H. StaceyFeb 20, 2012 9:43 am 
Robison, DaveFeb 20, 2012 1:43 pm 
Paul MatherFeb 20, 2012 2:05 pm 
Erich DollanskyFeb 20, 2012 6:09 pm 
Chip CamdenFeb 20, 2012 9:25 pm 
Erich DollanskyFeb 20, 2012 9:40 pm 
Robert BonomiFeb 20, 2012 10:06 pm 
Chip CamdenFeb 20, 2012 10:19 pm 
Doug HardieFeb 20, 2012 10:52 pm 
Erich DollanskyFeb 20, 2012 11:37 pm 
Erich DollanskyFeb 20, 2012 11:43 pm 
Robert BonomiFeb 21, 2012 4:38 am 
PolytroponFeb 21, 2012 7:18 am 
Jerry McAllisterFeb 21, 2012 7:56 am 
per...@pluto.rain.comFeb 21, 2012 10:13 am 
David BrodbeckFeb 21, 2012 11:47 am 
Erich DollanskyFeb 21, 2012 4:43 pm 
Erich DollanskyFeb 21, 2012 4:50 pm 
Subject:Re: /usr/home vs /home
From:Da Rock (free@herveybayaustralia.com.au)
Date:Feb 18, 2012 3:56:05 am
List:org.freebsd.freebsd-questions

On 02/18/12 21:39, Polytropon wrote:

On Sat, 18 Feb 2012 20:44:13 +1000, Da Rock wrote:

BTW I was intending to put across the concept of /usr being user related - anything a user may need or use; as opposed to / for the system related stuff that keeps it running. Maybe I wasn't as clear as I had thought... :)

There's lots of philosophy, tradition and vanished differentiation in this field. The manpage "man hier" provides a good explaination for the layout chosen for FreeBSD. However, there are questions that may arise:

What kind of programs? Those called by users, by the system, or by other programs (see libexec)?

/usr/local/libexec is used by the programs usually initiated by users. As per the man /libexec contains sub programs for those in /bin or /sbin.

The programs are usually run by users, or run as a user themselves (multiuser mode).

What's the difference between /bin and /sbin, same for /usr/bin and /usr/sbin? Could they maybe be merged when their functionality is similar and they reside on the same partition (file system) anyway?

Single-user mode v multiuser mode. Most of those in /bin /sbin are required minimal to revive a non functioning system.

The /etc directory - "editable text configuration" :-) - historically also contained binaries like /etc/mount or /etc/GETTY. Depending on its location, one can assume that it controls OS things only. Wrong. In many cases, /etc/rc.conf also contains settings for enabling services installed by ports. Even though FreeBSD can use /etc/rc.conf.local (has been known in OpenBSD for non-OS setup stuff), most things are found in the system-wide file. But the corresponding start scripts are in /usr/local/etc/rc.d. Why no /usr/local/etc/rc.conf? But as rc.conf is just a file to associate variables with names, there's no problem if they are defined, but not used (e. g. in a limited system state after encountering a problem)...

I think you _could_ use /usr/local/etc/rc.conf (or .local). I'd have to look it up to be sure, but I'm sure I've stumbled on it. Most of us are lazy though :) easier in just one file... besides, handbook says so so it must be right :)

Luckily, most software installed from ports keeps its settings out of /etc and uses /usr/local/etc instead. Having _known_ locations for settings makes it easy to back them up.

How about X on desktops? /etc/X11 is the common location for config files (if used), but per deduction, they should be in /usr/local/etc/X11 as X is a port, not a part of the OS. What about the configuration of xdm? Why isn't it stored in some /usr/local/etc subtree, but instead /usr/local/lib/X11/xdm/ is used?

X11 I think is. It just isn't completely filled with the conf files - but you can override the globals there if you choose. It does get confusing though.

XDM is an embarrassment :P It _should_ be run as a daemon from rc.conf, but you set it in /etc/tty, so no real surprise that its conf files are chaotic too...

This short list is just to mention the loads of philosophy hidden within the system. :-)

I'm no expert, but for the most part it all makes sense (I think); either that or I could be suffering from stockholm syndrome :)