[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: /usr/local stuff [Was Editor and sensible-editor]



Julian Gilbey <J.D.Gilbey@qmw.ac.uk> writes:

...
> > --- 7,10 ---- 
> >    
> >   umask 002 
> >   test -x /usr/bin/check-sendfile && /usr/bin/check-sendfile || /bin/true 
> > + test -f /usr/local/etc/profile && . /usr/local/etc/profile 
> 
> Eeks, no!  There's no such directory as /usr/local/etc.  /etc is for
> per-machine, non-sharable data.  /usr (and by extension /usr/local)
> is for sharable data.  /usr/local/etc would blur the distinctions
> terribly.  And of course, all (or almost all) of the files in /etc are
> locally-modifiable configuration files anyway, which the sysadmin can
> modify without fear of losing the modifications.

And thats the point hes making. There is no directory for config files 
thats shareable, but there are shareable config files.

If you have a pool, you want the same default profile on all maschines
for all users. Same with amny other files. You want the same
nameserver on all maschines.

> > I know that a solution like this would make my life as a sysadmin much
> > easier when installing new machines or reinstalling a machine (as I
> > had to do last week when I got a new HD), because I could tar up
> > /usr/local, untar it on the new machine, and everything on the new
> > machine would magically work.  (There might be an issue in this
> > example regarding the time that the /usr/local tree is mounted, but
> > that's another story...)
> 
> Tar up /etc and untar that instead, perhaps?  As long as the same
> packages are installed, it should be fine.  This would solve any
> issues about /etc/passwd and the like as well.

/etc/hostname (and many others) would be wrong.
Those are host specific.

/etc/hosts on the other hand is the same for all in a pool.
/etc/resolve.conf probably too.

Maybe a /etc/share, /etc/local and /etc/local/share should be created?

May the Source be with you.
			Goswin


Reply to: