Hands-on Lab·LPIC-1
SUID, sudo, and who can do what
Objective 110.1 asks you to find files with the SUID bit set and to explain what sudo grants. This guide starts from the puzzle that makes SUID make sense - /etc/shadow is unreadable to ordinary users, yet they can change their own passwords - and works outwards to auditing every such program on the machine and reading the sudo rule that applies to your own account.
102: Security Guide 23 of 33 Intermediate
- OSUbuntu 26.04 LTS
- Kernel7.0.0-30-generic
- systemd259
- TimeAbout 20 min
| Server Name | IP Address | OS | Roles | CPU | RAM | HDD |
|---|---|---|---|---|---|---|
| LPIC1-A01 | 192.168.0.76 | Ubuntu 26.04 LTS | Debian-family host - dpkg and apt, which objective 102.4 names | 2 Core | 4 GB | 50 GB |
This guide includes
Use this for the objective that asks you to find SUID files and explain them. This matters because two facts about passwd cannot both be true without that bit - which is what finally makes it make sense.
- meeting the puzzle that makes SUID make sense
- auditing every program with that power, using the command the objective names
- reading what sudo actually grants, rather than its reputation
- auditing which accounts cannot log in, and who has
Before you start
-
The puzzle that makes SUID make sense
-
Auditing every program with that power
-
What sudo actually grants
-
Accounts that cannot log in, and who has