From owner-freebsd-current@FreeBSD.ORG Sat Jul 31 11:56:47 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6ED8E1065672 for ; Sat, 31 Jul 2010 11:56:47 +0000 (UTC) (envelope-from olivier@gid0.org) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 425D78FC13 for ; Sat, 31 Jul 2010 11:56:46 +0000 (UTC) Received: by iwn35 with SMTP id 35so2917659iwn.13 for ; Sat, 31 Jul 2010 04:56:46 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.143.9 with SMTP id s9mr3572428ibu.65.1280577406189; Sat, 31 Jul 2010 04:56:46 -0700 (PDT) Received: by 10.231.151.142 with HTTP; Sat, 31 Jul 2010 04:56:46 -0700 (PDT) In-Reply-To: <20100730215638.GG12818@albert.catwhisker.org> References: <116420.91357.qm@web28409.mail.ukl.yahoo.com> <20100730215638.GG12818@albert.catwhisker.org> Date: Sat, 31 Jul 2010 13:56:46 +0200 Message-ID: From: Olivier Smedts To: David Wolfskill Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Benjamin Stuppin , freebsd-current@freebsd.org Subject: Re: /tmp and swap space X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Jul 2010 11:56:47 -0000 2010/7/30 David Wolfskill : > On Fri, Jul 30, 2010 at 09:23:37PM +0000, Benjamin Stuppin wrote: >> ... >> when using tmpfs for /tmp i'd probably add the "mode=3D1777" option, els= e you would mount /tmp with default options and without the sticky bit whic= h could cause some problems. > > I have never needed to do that. > > d254(9.0-C)[1] uname -v > FreeBSD 9.0-CURRENT #74 r210635: Fri Jul 30 07:34:44 PDT 2010 =A0 =A0 roo= t@localhost:/usr/obj/usr/src/sys/CANARY > d254(9.0-C)[2] ls -ldT /tmp > drwxrwxrwt =A010 root =A0wheel =A0200 Jul 30 14:53:27 2010 /tmp > d254(9.0-C)[3] grep !$ /etc/fstab > grep /tmp /etc/fstab > tmpfs =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 /tmp =A0 =A0 =A0 =A0 =A0 =A0tmp= fs =A0 rw,size=3D2g =A0 =A0 =A00 =A0 =A0 =A0 0 > d254(9.0-C)[4] Because your underlying /tmp has proper permissions, but it's safer to use = : tmpfs /tmp tmpfs rw,mode=3D1777 0 0 > > Peace, > david > -- > David H. Wolfskill =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0david@catwhisker.org > Depriving a girl or boy of an opportunity for education is evil. > > See http://www.catwhisker.org/~david/publickey.gpg for my public key. > --=20 Olivier Smedts=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=A0 _ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 ASCII ribbon campaign ( ) e-mail: olivier@gid0.org=A0 =A0 =A0 =A0 - against HTML email & vCards=A0 X www: http://www.gid0.org=A0 =A0 - against proprietary attachments / \ =A0 "Il y a seulement 10 sortes de gens dans le monde : =A0 ceux qui comprennent le binaire, =A0 et ceux qui ne le comprennent pas."