Unix Permissions (chmod)
Interactive octal (3/4-digit), symbolic rwx, special bits (setuid/setgid/sticky), umask calculator, ls -l parser, and recursive chmod scripts.
Permission Matrix
-rwxr-xr-xOwner (u)
File owner account
Group (g)
Members of the owning group
Others (o)
All other system users
Special Mode Bits
High octal digit (setuid / setgid / sticky)
4-digit mode: 0755
POSIX -rwxrwxrwx representation (ls -l)
umask Calculator
New file default (666 & ~umask)
644 (rw-r--r--)
New dir default (777 & ~umask)
755 (rwxr-xr-x)
Ready-to-Run Commands
Single target chmod
chmod 755 /var/www/appRecursive chmod -R
chmod -R 755 /var/www/appSeparate dirs (755/+) & files (-x)
find /var/www/app -type d -exec chmod 755 {} + && find /var/www/app -type f -exec chmod 644 {} +