From the course: Linux: Files and Permissions

Unlock the full course today

Join today to access over 24,800 courses taught by industry experts.

Special file bits: SUID and SGID

Special file bits: SUID and SGID - Linux Tutorial

From the course: Linux: Files and Permissions

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, is 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 cache is all executables for faster execution anyway so there's a 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 slash USR slash bin slash SU and hit Enter. The first thing you should notice is that the file is bright red, this tells you something special is…

Contents