"Permission denied" isn't an error: it's Linux protecting your files. In this episode you'll learn to read the permission string in ls -l, what r, w and x mean for files and for folders, how to turn permissions into numbers like 644 and 755, how to change them with chmod (numbers and letters), how to change the owner with chown, where default permissions come from (umask), and why you should never use chmod 777.

⏱ Chapters
0:00 Permission denied?
0:21 Reading ls -l
0:46 r, w, x explained
1:10 Permissions as numbers (644, 755)
1:35 chmod with numbers
1:53 chmod with letters (u g o a, + -)
2:14 chown: change the owner
2:35 umask: default permissions
3:02 Never chmod 777
3:21 Common mistakes
3:43 Cheat sheet
4:03 Like & subscribe
4:14 Homework & up next

⌨️ Commands from this video
ls -l show permissions, owner and group
chmod 755 script.sh rwx for the owner, r-x for everyone else
chmod 644 notes.txt rw for the owner, read-only for everyone else
chmod +x deploy.sh make a file executable
chmod o-r notes.txt take read away from others
sudo chown anna report.txt change the owner
sudo chown anna:developers report.txt change owner and group at once
sudo chown -R anna:developers project/ a folder and everything inside
umask show the default mask (Ubuntu: 0002)

🔢 r = 4, w = 2, x = 1: add them up for owner, group and others.
⚠️ Never chmod 777: give exactly the access that's needed.

📺 Full course playlist:
◀ Previous – #6 Users, Groups & sudo: [EP6 LINK]
▶ Next – #8 Package Management: apt, snap & Updates: coming soon

💬 Homework: make a script executable and run it. Then chmod a file to 600: who can read it? Answer in the comments!

👍 If this helped, like & subscribe, it keeps the course free.
© netacademy.ge

#Linux #UbuntuServer #SysAdmin

Last modified: Sunday, 6 December 2026, 10:07 AM