Title: chmod /tmp/ 777?
Last modified: August 18, 2016

---

# chmod /tmp/ 777?

 *  [levin71](https://wordpress.org/support/users/levin71/)
 * (@levin71)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/chmod-tmp-777/)
 * Should I chmod my root /tmp/ directory to 777 so WP could access the directory?
   If so, how can I make sure the directory will be safe?

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [mattread](https://wordpress.org/support/users/mattread/)
 * (@mattread)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/chmod-tmp-777/#post-331692)
 * Yes.
 * Safe? Make the files in it have the right perms.
 *  Thread Starter [levin71](https://wordpress.org/support/users/levin71/)
 * (@levin71)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/chmod-tmp-777/#post-331696)
 * But, even if I can protect the existing files, doesn’t it still allow others 
   to put or execute files in the directory? I asked this because it happened already.
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/chmod-tmp-777/#post-331697)
 * yes it does.
 *  Thread Starter [levin71](https://wordpress.org/support/users/levin71/)
 * (@levin71)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/chmod-tmp-777/#post-331904)
 * Sorry, I think I’ve not got my concern solved here. Let me rephrase my question:“
   How can I chmod /tmp/ 777 without risking my server security?” A few days ago,
   when I chmod 777 the directory, someone compromised my server. Can anyone give
   me a solution?
 * Thanks a lot..
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/chmod-tmp-777/#post-331951)
 * “How can I chmod /tmp/ 777 without risking my server security?”
 * Is this your own box? Assuming it is, the only way to reduce the risk (using 
   those settings) is to make sure you chose wiesly about who you allow access, 
   and what sort of access you allow, and what sort of applications you allow them
   access to.
 * Read up on NIX security — there are 100’s of good web sites that have pointers
   and tips.
 * Anyone with shell access can wreak havok with a wide open /tmp dir. Less so with
   just web access, but it can be done all the same.
 * One better solution is to stick with only allowing world-writable files or directories
   inside a user’s /home directory, atleast than it’s “localized” grief.
 * Lastly, and even more generally, stay current with your distros updated packages.
 * ** Alot of this isnt just NIX advice either obviously.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘chmod /tmp/ 777?’ is closed to new replies.

## Tags

 * [temporary](https://wordpress.org/support/topic-tag/temporary/)
 * [tmp](https://wordpress.org/support/topic-tag/tmp/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 3 participants
 * Last reply from: [whooami](https://wordpress.org/support/users/whooami/)
 * Last activity: [20 years, 3 months ago](https://wordpress.org/support/topic/chmod-tmp-777/#post-331951)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
