December 2018
Beginner
826 pages
22h 54m
English
Starting with exampledir, let's look at the permissions and ownership of this directory.
drwxrwxr-x. 2 vagrant vagrant
We have an array of letters, a number 2, and then two names, vagrant and vagrant.
drwxrwxr-x.
The d at the beginning is an easy one; it indicates that the listed item is actually a directory.
drwxrwxr-x.
Then, we have three elements that appear similar, and the first of these are the user permissions. Here, the permissions are read, write, and execute.
This means that the user will be able to touch (create) files in the directory, mv (rename) them, ls (list) them, cat/less (read) them, and even rm (delete) them should they wish.
drwxrwxr-x.
Next, we have the group permissions, here again as read, write, and execute. ...
Read now
Unlock full access