Date: Sun, 31 Jan 1999 23:10:31 -0800 (PST) From: Mike Meyer <mwm@phone.net> To: freebsd-questions@FreeBSD.ORG Subject: Re: why does /tmp world writable? Message-ID: <Pine.BSF.4.05.9901312303380.21503-100000@guru.phone.net> In-Reply-To: <Pine.BSF.3.96.990201074116.930A-100000@turkey.ispro.net.tr>
next in thread | previous in thread | raw e-mail | index | archive | help
Nope, that's not really better. Some might consider it worse. For instance, having root's temp files show up on / would generally be considered bad. More concretely, what do you do if $HOME isn't set, or $HOME/temp doesn't exist (user delete it, or you're at a single-user boot, trying to fix fstab to add a disk, or ....)? The programs shouldn't just give up, but should do something intelligent. Many programs these days use something like $TMPDIR if it exists, or /tmp if it doesn't. That's better in that it gives you a bit more control over where the temp files go, and includes a fallback behavior. <mike On Mon, 1 Feb 1999, Evren Yurtesen wrote: > Date: Mon, 1 Feb 1999 07:41:56 +0200 (EET) > From: Evren Yurtesen <yurtesen@turkey.ispro.net.tr> > To: Jasper O'Malley <jooji@webnology.com> > Cc: freebsd-questions@FreeBSD.ORG > Subject: Re: why does /tmp world writable? > > programs could have been using $HOME/temp > or something like that... > would not it be more appropriate? > > On Sun, 31 Jan 1999, Jasper O'Malley wrote: > > > On Sun, 31 Jan 1999, Evren Yurtesen wrote: > > > > > hello, > > > why does /tmp directory has 777 permissions ? > > > > So there's an appropriate place for everyone to stick temp files. A lot of > > programs break, or at least lose some functionality, if it doesn't have > > 1777 permissions. > > > > > what if somebody fills this directory with stuff? > > > > Put it on it's own filesystem; put user quotas on it, as well. > > > > Cheers, > > Mick > > > > The Reverend Jasper P. O'Malley dotdot:jooji@webnology.com > > Systems Administrator ringring:asktheadmiral > > Webnology, LLC woowoo:http://www.webnology.com/~jooji > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9901312303380.21503-100000>