Can’t create/write to file /tmp/ (Errcode: 13)

The error message “Can’t create/write to file /tmp/” appears when any application tries to write it’s temporary files to the /tmp directory and the /tmp directory don’t have a world writable permissions. To fix the issue, make sure the /tmp directory have 777 permissions.

1) SSH to your server as root.

2) Set the permissions of /tmp directory

# chmod 1777 /tmp

3) To verify the permissions, execute

# ls -ld /tmp
 drwxrwxrwt  6 root root 4096 Aug 25 11:23 /tmp/

Once done, the website/application should work fine.

This entry was posted on Wednesday, August 25th, 2010 and is filed under Linux Administration. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.

Comments are closed.