From owner-freebsd-questions Sun Jan 31 23:10:33 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA04412 for freebsd-questions-outgoing; Sun, 31 Jan 1999 23:10:33 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from guru.phone.net (guru.phone.net [209.157.82.120]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id XAA04407 for ; Sun, 31 Jan 1999 23:10:31 -0800 (PST) (envelope-from mwm@phone.net) Received: (qmail 1328 invoked by uid 100); 1 Feb 1999 07:10:31 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 1 Feb 1999 07:10:31 -0000 Date: Sun, 31 Jan 1999 23:10:31 -0800 (PST) From: Mike Meyer To: freebsd-questions@FreeBSD.ORG Subject: Re: why does /tmp world writable? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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. Date: Mon, 1 Feb 1999 07:41:56 +0200 (EET) > From: Evren Yurtesen > To: Jasper O'Malley > 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