Why does Samba requires 777 permissions on /tmp

Bob Eager rde at tavi.co.uk
Sun May 19 21:22:37 UTC 2013


On Sun, 19 May 2013 15:59:12 -0500
Jimmy <ljboiler at 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.


More information about the freebsd-ports mailing list