Module 03 of 12

Permissions & Ownership

Lessons

About This Module

Linux is a multi-user system, so every file and folder records who owns it and who is allowed to do what with it. If you have ever seen "Permission denied", tried to run a script that wouldn't start, or been told to "just use sudo", this module explains what was going on underneath. Permissions are also your first line of defence: getting them wrong can expose private files or let a single typo damage the whole system.

It starts with reading and changing permissions: the read, write and execute bits for the owner, group and everyone else, how to read a string like -rwxr-xr-- in ls -l, and using chmod with both letters and numbers like 755. Then it covers ownership with chown, default permissions for new files with umask, and finally sudo: how to run a command as root when you need to, and why you shouldn't run everything that way.

Try each command on a few test files as you watch the lessons in order, then continue on to Pipes & Redirection.

Lessons

4 videos
01

Linux File Permissions Explained: What chmod 755 Means

A short, clear introduction to permissions: user, group and others; read, write and execute; turning rwx into numbers (r=4, w=2, x=1); reading ls -l output; and using chmod with either numbers or letters.

02

How to Use the chown Command

A quick TECH(talk) Linux tip showing how chown changes who owns a file, either just the owner or the owner and group together.

03

Unmasking the Linux Umask

What the umask is and why it matters: it decides the default permissions every new file and folder gets, and you can change it to make new files more or less open.

04

Everything You Need to Know About sudo

Why sudo exists, how it lets chosen users run commands as root, re-running the previous command with sudo, what the /etc/sudoers file controls, and how to edit it safely without locking yourself out.