Understanding Linux Permissions: The Basics

Make permissions your friend, not your mysterious gatekeeper.

Why Permissions Matter

Permissions protect your system from accidents and mischief. Understanding them keeps your apps happy and your logs quiet.

The Three Characters

Users: owner, group, others. For each you can grant read, write, xecute.

-rwxr-x---  1 app app  4096 Feb 20  index.js

Symbolic vs Numeric Modes

Two ways to set permissions.

Common Recipes

Ownership with chown and chgrp

Ownership defines who gets the keys.

chown -R app:app /var/www/site

Setuid, Setgid, and Sticky Bit

Special modes with special powers.

ACLs for Fine Grained Control

When traditional bits are not enough, use ACLs.

setfacl -m u:berty:rwx /data/reports
getfacl /data/reports

Troubleshooting Checklist

The VPN Index - Find the best VPN for your needs