December 2018
Beginner
826 pages
22h 54m
English
Starting at the easiest bit, we're going to look at the ownership of the files in question.
Begin by listing what we have already:
$ ls -lhatotal 0drwxr-xr-x. 4 root root 64 Oct 28 12:37 .dr-xr-xr-x. 18 root root 239 Oct 28 12:35 ..drwxr-xr-x. 2 root root 45 Oct 28 12:37 permissiondir-rw-r--r--. 1 root root 0 Oct 28 12:37 permissionfiledrwx------. 3 vagrant vagrant 74 May 12 18:54 vagrant
Say we wanted to make it so our vagrant user could write to the permissionfile, instead of its current ability to only read it. Note the following for this:
$ echo "RFCs are great if boring." > permissionfile-bash: permissionfile: Permission denied
We would use chown to make this change, by passing the user and group we want to change the file to: ...
Read now
Unlock full access