Linux File Permissions Cheat Sheet: chmod, chown and umask Explained (Free PDF)
Linux file permissions decide who can read, write or execute a file. Each file has rwx bits for the owner, the group and everyone else. Change them with chmod (755 for scripts and directories, 644 for files), change ownership with chown, and set defaults for new files with umask.