Special Permissions: setuid, setgid, and the Sticky Bit
Read the three special permission bits in a listing and in octal, list every file that carries one, fix a drop directory and a team directory with them, take the setuid bit off a planted copy, and grant one program a group on purpose.
Skill labintermediate~30 minPro
What you'll do
- ✓Read setuid, setgid and sticky in a long listing and as the fourth octal digit
- ✓Find files that carry special bits with find -perm
- ✓Use the sticky bit and the setgid bit on shared directories
- ✓Remove a dangerous setuid bit and set a setgid bit deliberately
Lab outline
- 01Read the bits
- 02Shared directories
- 03Programs
Before you start
- Groups and Shared Project Directories
- Permissions, umask, and Sticky Directories
- Find Files and Understand Links
Every lab runs on a real machine of your own in the browser — no installs, nothing to clean up — and checks your work automatically as you go.