Permissions, umask, and Sticky Directories

A payroll file is world-writable and a shared scratch directory lets anyone delete anyone's work. Fix both with plain Unix permissions and understand what each bit actually does.

Skill labbeginner~30 minFree

What you'll do

  • ✓Read a path component by component with namei and know what each mode means
  • ✓Restrict a file to its owner and group without breaking traversal
  • ✓Predict the modes umask will produce for files and directories
  • ✓Use the sticky bit so a shared directory protects each user's files

Lab outline

  1. 01The payroll report
  2. 02The scratch directory

Before you start

  • Groups and Shared Project Directories

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

Permissions, umask, and Sticky Directories — Linux lab | Kube Labs