/tmp permissions?

emmanuel

Verified User
Joined
Mar 26, 2007
Messages
88
After rebooting the server due to an unexplained freeze, squirrelmail stopped working. Looking into the issue, it appeared that it was unable to save sessions data.

Apparently, /tmp became 755 so php couldn't write session data.

Now, it seems to me that I've inadvertently changed something during the various updates (mysql5/php5/apache2) using ELS/DA before this forced reboot that altered configuration.

Is /tmp where DA configured PHP to use by default or was it some other folder that got changed when I updated php?

Also, I've made it work now by doing a 777 on /tmp but this seems unsafe to me.

Is it ok to leave /tmp at 777 or should I make a folder elsewhere chown it to webapps:webapps?
 
I thought so that would be enough, to have 766 but that didn't work. For some inexplicable reason, squirrelmail requires execute permission on /tmp.

Should I be concerned or is that normal?
 
Back
Top