Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 Jul 2010 13:56:46 +0200
From:      Olivier Smedts <olivier@gid0.org>
To:        David Wolfskill <david@catwhisker.org>
Cc:        Benjamin Stuppin <benjamin_stuppin@yahoo.de>, freebsd-current@freebsd.org
Subject:   Re: /tmp and swap space
Message-ID:  <AANLkTinrJJ87ARen1cOoiRFwGnDxhiJj=o455yvM7AH8@mail.gmail.com>
In-Reply-To: <20100730215638.GG12818@albert.catwhisker.org>
References:  <116420.91357.qm@web28409.mail.ukl.yahoo.com> <20100730215638.GG12818@albert.catwhisker.org>

next in thread | previous in thread | raw e-mail | index | archive | help

2010/7/30 David Wolfskill <david@catwhisker.org>:
> On Fri, Jul 30, 2010 at 09:23:37PM +0000, Benjamin Stuppin wrote:
>> ...
>> when using tmpfs for /tmp i'd probably add the "mode=1777" option, else you would mount /tmp with default options and without the sticky bit which 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     root@localhost:/usr/obj/usr/src/sys/CANARY
> d254(9.0-C)[2] ls -ldT /tmp
> drwxrwxrwt  10 root  wheel  200 Jul 30 14:53:27 2010 /tmp
> d254(9.0-C)[3] grep !$ /etc/fstab
> grep /tmp /etc/fstab
> tmpfs                   /tmp            tmpfs   rw,size=2g      0       0
> d254(9.0-C)[4]

Because your underlying /tmp has proper permissions, but it's safer to use :
tmpfs   /tmp    tmpfs   rw,mode=1777    0       0

>
> Peace,
> david
> --
> David H. Wolfskill                              david@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.
>



-- 
Olivier Smedts                                                 _
                                        ASCII ribbon campaign ( )
e-mail: olivier@gid0.org        - against HTML email & vCards  X
www: http://www.gid0.org    - against proprietary attachments / \

  "Il y a seulement 10 sortes de gens dans le monde :
  ceux qui comprennent le binaire,
  et ceux qui ne le comprennent pas."



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