Today, on Day 3 of my 40-day AWS DevOps challenge, I focused on understanding Linux permissions, which are critical for real-world DevOps work on EC2.
What I Learned Today
1️⃣ Linux File Permissions
Read (r)
Write (w)
Execute (x)
Permission groups: Owner | Group | Others
Example:
-rwxr-xr--
chmod — Change Permissions
Used to allow or restrict access to files and scripts.
Examples:
chmod 755 script.sh
chmod +x deploy.sh
chown — Change Ownership
Used when fixing permission issues after deployments.
Example:
sudo chown ec2-user:ec2-user app.log
_
Why Permissions Matter in DevOps
_
Scripts won’t run without execute permission
Web servers fail due to wrong ownership
CI/CD pipelines break due to access issues
What I Understood
Permission issues are very common in EC2
DevOps engineers solve many problems using chmod and chown
Understanding permissions saves a lot of debugging time
Practices :
I have also solved questions using ChatGPT
Top comments (0)