Permissions Explained
AS
Aman Saurav
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
Security
Never use chmod 777 unless you absolutely have to. It gives write access to everyone.