On Fri, Jun 30, 2006 at 01:45:15PM +0100, Craig Skinner wrote:
| On Fri, Jun 30, 2006 at 12:00:12PM +0200, Tobias Weisserth wrote:
| >
| > I never understood why putting /tmp on its own partition is good when
nobody
| > notices /var/tmp. In addition to /tmp I always put /var/tmp on its own
| > partition too, so that I can mount it with nodev,noexec,nosuid.
|
| I always symlink /var/tmp to my /tmp partition and mount /tmp with:
| nodev,noexec,nosuid,noatime,async - as it gets wiped at boot anyway.
Not only at boot, see daily(8) :
- Removes scratch and junk files from /tmp and /var/tmp.
But anyway, /var/tmp is meant to be the temporary storage area that
*survives* reboots, it's actually used for this purpose, it's where vi
stores its recovery files. If you ever reboot your machine when a
stubborn user has ignored the warnings (perhaps wasn't at his terminal
at that time) shutdown(8) sends out, he'll be able to recover his very
important document if /var/tmp is not wiped at boot.
I'd advise against symlinking /tmp to /var/tmp (or the other way
around). Just my 0.02EUR
Cheers,
Paul 'WEiRD' de Weerd
--
>++++++++[<++++++++++>-]<+++++++.>+++[<------>-]<.>+++[<+
+++++++++++>-]<.>++[<------------>-]<+.--------------.[-]
http://www.weirdnet.nl/
[demime 1.01d removed an attachment of type application/pgp-signature]