PDA

View Full Version : Can i have /tmp with 777 permissions?



Fli
09-24-2013, 09:08 PM
Is it secure to setup /tmp with 777 permissions?

My PHPBB and vbulletin did not worked to upload images, avatars saying: Temporary folder could not be found. Please check your PHP installation.

When changed /tmp folder permissions by "chmod 777 /tmp" it started to work, but is it secure to have these permissions?

I think these permissions are common, but one should probably set noexec,nosuid mount parameters to the /tmp (https://internetlifeforum.com/linux-forums/8776-how-make-tmp-var-tmp-dev-shm-noexec-nosuid-even-openvz/) partition to prevent some bad scripts execution from this directory that is writable by all users.