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 - 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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
Standard Linux permissions overview1m 52s
-
(Locked)
File and directory modes1m 16s
-
(Locked)
File ownership3m 14s
-
(Locked)
Permissions using numeric notation3m 2s
-
(Locked)
Permissions using symbolic notation4m 44s
-
(Locked)
Initial permissions using umask4m 30s
-
(Locked)
Special file bits: SUID and SGID4m 59s
-
(Locked)
Special directory bits: SGID and Sticky5m 53s
-
(Locked)
Challenge: Permissions2m 16s
-
(Locked)
Solution: Permissions4m 19s
-
(Locked)
-
-