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
- 01The payroll report
- 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.