From the course: Linux Tips

Unlock this course with a free trial

Join today to access over 25,200 courses taught by industry experts.

Sticky bit

Sticky bit

- [Instructor] On a Linux system, access to most directories is limited to certain users and groups, though there are some directories to which all users have access. This is the case with the TMP directory, used for storing temporary data of all kinds, and this open permission, represented by 777 in octal or read, write, and execute for the owner, the owning group, and all other users, can also be applied to directories we want all users to access. We can think of such a directory like a shared dining table, where anyone at the table, or anyone at all, can try this or that, or add dishes, or remove them. If we create a directory with open permissions that comes with the side effect of any user on the system being able to delete files created by other users within that directory, like someone else finishing the last of the cheese snacks you ordered. In many cases, this isn't desirable and to protect against that…

Contents