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

  1. 01Read the bits
  2. 02Shared directories
  3. 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.

← All Linux System Administration labs

Your first machine is
8 seconds away.

Learn by doing on real machines — and give every AI agent one of its own.

Free forever · No credit card · Cancel anytime

Special Permissions: setuid, setgid, and the Sticky Bit — Linux lab | Kube Labs