From the course: Practical Linux for Network Engineers: Part 1

Unlock this course with a free trial

Join today to access over 22,500 courses taught by industry experts.

Linux permissions, part 2

Linux permissions, part 2

- We've now discussed owners and group owners in Linux. We now need to talk about file permissions. The three permissions that we're concerned with are read, write, and execute. These permissions also have numeric values which you can use for setting permissions on files and directories. Read's numeric value is four, write is two and execute is one. So what does read, write, and execute actually mean? And you need to be careful here, because the meaning is different when talking about files versus directories. So an execute permission as an example on a file is different to an execute permission on a directory. So let's start with read. If you have read permissions to a file read means that you can read the contents of the file, however read on a directory doesn't mean you that can read the contents of all files in that directory. It simply means that you can list the files in the directory, not necessarily read the content of files in the directory. So in this example, I'm logged in…

Contents