Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Apr 2015 18:28:15 +0100
From:      RW <rwmaillists@googlemail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: ufs snapshot help
Message-ID:  <20150424182815.33b1c95d@gumby.homeunix.com>
In-Reply-To: <14591.128.135.70.2.1429886972.squirrel@cosmo.uchicago.edu>
References:  <CAKE2PDuSGsrf7mHfd2zo-BJAhsOL4KDKTmdROBwtJKeFrvWCBw@mail.gmail.com> <CAKoxK%2B7brXXBE=JxPQHm06a2SEMiGC7k3eF95o7aQ90Hi__3Fg@mail.gmail.com> <CAKE2PDudJ57mWhPKU7XhEz85QG1Gywxt8U=sW1i7T6Nf269h3g@mail.gmail.com> <mhbe4v$gd3$1@ger.gmane.org> <65468.128.135.70.2.1429815636.squirrel@cosmo.uchicago.edu> <20150424123823.1f02c665@gumby.homeunix.com> <14591.128.135.70.2.1429886972.squirrel@cosmo.uchicago.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 24 Apr 2015 09:49:32 -0500 (CDT)
Valeri Galtsev wrote:

> 
> On Fri, April 24, 2015 6:38 am, RW wrote:
> > On Thu, 23 Apr 2015 14:00:36 -0500 (CDT)
> > Valeri Galtsev wrote:
> >
> >>
> >
> >> Once (a while ago) I noticed Linuxes have started in addition
> >> to /tmp using /var/tmp,
> >
> > FreeBSD has always had /var/tmp. It's perfectly sensible, file
> > in /tmp don't need to survive a reboot, those in /var/tmp do.
> 
> Functionality wise, yes. Security/robustness wise, no. Well, one can
> have both by creation of yet another partition and mounting it
> as /var/tmp. Then regular user will not be able to just fill up /var
> (through /var/tmp) thus stopping logs being incremented, preventing
> daemons being started (the ones that need to write their PID
> into /var/run) etc.


But FreeBSD has /var/tmp, it's had it since the beginning, it's
certainly not a Linuxism. I don't recall it ever being a separate
partition in a default install, or the handbook suggesting that it
might be one. If Linux is brain-dead for having it in /var then FreeBSD
is too.

FreeBSD, by default, reserves 8% of space for root so filling up /var
with user files doesn't stop most daemon from starting and most are
started at boot anyway. Filling-up /tmp or /var/tmp can create worse
problems for daemons than filling-up /var.

FWIW back in the 1970's the original reason for having a /usr/tmp was to
keep user files out of /tmp altogether.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150424182815.33b1c95d>