From the course: LPIC-1 Exam 101 (Version 5.0) Cert Prep

Unlock the full course today

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

Special file bits: SUID and SGID

Special file bits: SUID and SGID - Linux Tutorial

From the course: LPIC-1 Exam 101 (Version 5.0) Cert Prep

Start my 1-month free trial

Special file bits: SUID and SGID

- [Instructor] SUID and SGID are special bits for bits for privilege escalation on executable files. The SUID bit allows non user owners to execute commands with the privileges of the user owner. In a terminal let's do a long list on slash usr, slash bin, slash su, by typing in ls, space, dash el, space, slash usr, slash bin, slash su, and hit enter. The first thing you may notice is that the file is bright red. This tells us something special is happening here. Let's take a look at the permissions. The permissions for the user owner are rws. Note that we can no longer see the user owners execute position. The s and the user owner's execute position means we have the SUID bit set. If the s is lower case then the execute is also set. If the s is upper case then the execute permissions are not set. The case of the s is the only way to tell if execute permissions are set or not. When the SUID bit is set and regular users…

Contents