Latest blog entry

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

August 25, 2010    |   Posted by admin   |    Category: Linux Administration

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.

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