Bash/Zsh Commands Permissions Explained

Permissions Explained

AS
Aman Saurav
| Apr 6, 2025 |
8 min read
#security

Read (4), Write (2), Execute (1).

chmod +x script.sh   # Make executable
chmod 755 script.sh  # rwx for owner, rx for others

Never use chmod 777 unless you absolutely have to. It gives write access to everyone.