Why are some folders world-writeable?
- Red Hat Enterprise Linux 3,4,5,6,7
These folders have world writeable permissions. Why?
- /tmp (and it's contents)
These first two folders are part of a pseudo file system that is used to communicate with the kernel. In order for user space to use the interfaces in
/dev, they need to be writable by others. Changing these permissions is not recommend and if the permissions of these files are modified, they will not persist across reboots as these folders are not backed on disk.
/tmp /tmp/.ICE-unix /tmp/.font-unix /var/tmp
The purpose of these three folders is that of a temporary work space, with the understanding that things written here my be erased at any time. As such, anyone can read/write to these folders, and any process that does is responsible for the permissions used.
- Normal operation of operating system
- Red Hat Enterprise Linux
- Learn more
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.