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 - Linux Tutorial
From the course: LPIC-1 Exam 101 (Version 5.0) Cert Prep
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…
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)
Create and delete local user accounts4m 27s
-
(Locked)
Modify local user accounts4m 57s
-
(Locked)
Manage user passwords4m 15s
-
(Locked)
What is a file?2m 10s
-
(Locked)
Get file attributes3m 41s
-
(Locked)
Get extended attributes4m 13s
-
(Locked)
About standard Linux permissions1m 47s
-
(Locked)
File and directory modes1m 19s
-
(Locked)
File ownership4m 34s
-
(Locked)
Set permissions using numeric method3m 13s
-
(Locked)
Set permissions using symbolic method5m 16s
-
(Locked)
Default permissions using umask5m 51s
-
(Locked)
Special file bits: SUID and SGID3m 49s
-
(Locked)
Special directory bits: SGID and Sticky6m 26s
-
(Locked)
-
-