Chapter 1: File Permissions

File permission

face Josiah Wang Tom Crossland

In the previous session we looked at file permissions using the ls command.

We saw that files have three different sets of permissions, for the owner, for the group group, and for everyone else.

When examined using ls, these should look something like this:

-rw-r--r--

So here we have a file (signified by - at the beginning – remember that this would be d for a directory), rw- for the owner, r-- for the group, and r-- for everyone else. So the owner can read and write to the file, but not execute it, and all other users can only read the file.

These permissions are not set in stone, and can be changed! Let’s see how.