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

Unlock the full course today

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

Find suid/sgid files

Find suid/sgid files - Linux Tutorial

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

Start my 1-month free trial

Find suid/sgid files

- [Instructor] SUID and SGID bits on executable files are special bits for privilege escalation. The SUID bit allows non-user owners to execute commands with privileges of the user-owner. In our terminal, let's do a long list on slash USR, slash BIN slash SU by typing in LS space dash L space slash USR slash BIN slash SU and hit enter. The first thing we notice is that the file is bright red. This tells us something special is happening. 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-owner's execute position. The S in the user-owner's execute position means we have the SUID bit set. If the S is lower case, then execute is set. If the S is upper case, then execute permissions are not set. The case of the letter S is the only way we can tell if the execute permissions are set. When the SUID bit is set and a regular user, such as Bob, executes it…

Contents