From the course: LPI Linux Essentials (010-160) Cert Prep

Unlock the full course today

Join today to access over 22,700 courses taught by industry experts or purchase this course individually.

Using sticky bits

Using sticky bits - Linux Tutorial

From the course: LPI Linux Essentials (010-160) Cert Prep

Start my 1-month free trial

Using sticky bits

- When investigating the Linux directory tree, there are going to be certain file type that are going to require special attention from you. Sometimes, a user may just want to be aware that these special files exist and how they're handled, because they're going to deviate from what is expected based on what has been previously covered in the other videos we've talked about. For example, a user could delete a file without having write permission to it. Now, this may seem like a bug after all, because if a user can't write to a file, we may think they shouldn't be able to delete that file either. But, you have to remember that directories are a special type of file, one that holds other files' names and pointers to their lower level data structure. Therefore, modifying a file requires write access to the file, but to create or delete a file, only requires write access to the directory in which the file's going to reside.…

Contents