I'm often using, on unix servers I'm working with, the /tmp folder as a folder where I write temporal stuff needed for my software (mainly web applications). It has usually 777 permissions.
I found in my local machine, which mounts OsX Maverick, that the /tmp folder does NOT have 777 permissions, but drwxr-xr-x
.
/tmp is actually a symbolic link to /private/tmp, which has the same permissions.
My question is: is there any security reason why /tmp (or /private/tmp) should not have 777 permissions? Practical explanatory examples would be great!
/tmp
with mode 0777 wouldn't be very nice on a multi-user system; it means anyone can delete anyone else's temporary files. You probably meant 1777, which is world writable with the sticky bit set, so any user can write but only the owner of a file can delete the file./private
part. What exactly is that used for in OS X?