From the course: Red Hat Certified System Administrator (EX200) Cert Prep: 2 File Access, Storage, and Security

Unlock the full course today

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

Special file bits: SUID and SGID

Special file bits: SUID and SGID

- [Instructor] There are additional special bits for privilege escalation on executable files. The first is called set user ID, or SUID, which instructs Linux to run the executable file as the user owner of the file. We also have set group ID, or SGID, which instructs Linux to run the executable file as the group owner of the file. And lastly, Sticky. Historically in Unix, if you set the Sticky bit on a program, it would remain in swap, making it execute faster the next time it is run. Some versions of Unix and BSD still maintain this functionality. But it has never existed in Linux. Linux caches all executables for faster execution anyway. So there's little need for a Sticky bit. In a terminal, let's do a long list on the su command by typing in ls, space, dash l, space, /usr/bin/su and hit enter. The first thing you should notice is that the file is bright red. This tells you something special is happening here. Let's take a look at the permissions. The permissions for the user…

Contents