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

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 it is unable to write to due to the permission issue. In such a case, make sure the permissions of the /tmp directory is writable i.e. 1777.

1) SSH to your server as root.

2) Set the permissions of /tmp directory

root@server [~]# chmod 1777 /tmp

3) To verify the permissions, execute

root@server [~]# ls -ld /tmp
drwxrwxrwt  6 root root 4096 Aug 25 11:23 /tmp/

Once done, the website/application should work fine.

Tags: , , , , ,

Leave a Reply

*
To prove you're a person (not a spam script), type the security word shown in the picture.
Anti-spam image