Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 May 2013 22:22:32 +0100
From:      Bob Eager <rde@tavi.co.uk>
To:        freebsd-ports@freebsd.org
Subject:   Re: Why does Samba requires 777 permissions on /tmp
Message-ID:  <20130519222232.13aa95c6@raksha.tavi.co.uk>
In-Reply-To: <20130519204753.GA47341@jmobile.jimmy.net>
References:  <CAFzAeSdgRotc34%2BeyfVHZBA-QGUCWJ1MZDYw1ysRxEV9MhG2BQ@mail.gmail.com> <CADLo83-pFi8E-Wdoyju7YxBmOR67Qr4OWmZA-2x8_Um1F2bwoQ@mail.gmail.com> <CAFzAeSd%2B7oubgZ%2BzSJnmfNPA9v1=T41c=VF0C-sbz=vhyVE_OA@mail.gmail.com> <20130519115232.49f52d01@scorpio> <CADLo83-my3xBj9G9_dT0=FGfvK0jaRFQUhmk_YtRx3h8S_g2%2BQ@mail.gmail.com> <CAFzAeSdhNp3zor_ofMS7P1We6Wgoa5fyxeFFDxq3tPkB2CgYyA@mail.gmail.com> <20130519195639.79464471@raksha.tavi.co.uk> <20130519151706.4d67afe5@scorpio> <CAFzAeSeH_EMK6p4PSCQ0Ps8L=4V%2BarAF7b7FJwmaGinnw5CMUw@mail.gmail.com> <20130519204753.GA47341@jmobile.jimmy.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 19 May 2013 15:59:12 -0500
Jimmy <ljboiler@gmail.com> wrote:

> From the original post that started this thread, I noticed that the
> error from portupgrade/ruby was showing the permissions that it didn't
> like as mode 040777 (octal).   This is definitely with the sticky bit
> turned OFF. It should be 041777.  'stat -r /tmp' will print the
> permissions in octal rather than the '..rwx...' from ls -l; the
> permissions is the third group of numbers.

Well, that's true. And it is a security risk not to have the sticky bit
on /tmp.

Of course (for the avoidance of confusion) the 040000 bit can't be
changed, being the 'directory' bit.



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