What Does Linux chmod 755, 644, and 600 Mean?
chmod (short for "change mode") controls who can read, write, or execute files and directories on Linux, macOS, and Unix servers. Each octal digit sums Read (4), Write (2), and Execute (1) for Owner (u), Group (g), and Public / Others (o), with an optional leading digit for special POSIX bits: SUID (4), SGID (2), and Sticky Bit (1). Read our Linux chmod 755 vs 644 & SSH Permissions Guide.
How to Build Safe Linux Permission Commands
ls -l string like drwxr-xr-x directly./var/www/html), and optionally enable -R Recursive (with safe find split commands shown automatically).umask, and copy the octal or symbolic chmod command (Ctrl+Enter).Common Production Server Permission Presets
Use chmod 755 (drwxr-xr-x) for Nginx/Apache web directories and executable scripts, chmod 644 (-rw-r--r--) for static HTML/CSS/JS/media files, chmod 700 for ~/.ssh, chmod 600 (or 400) for SSH private keys and .env/wp-config.php secrets, and chmod 1777 for sticky shared temp folders like /tmp. Never use plain chmod 777 on production servers.