From the course: Complete Guide to Linux Security: Protecting Your Linux Server Environment

Unlock this course with a free trial

Join today to access over 24,700 courses taught by industry experts.

chmod

chmod

- Let's talk about the chmod command, and in this sub-lesson, we'll run a lab about file permissions. So chmod stands for change file mode bits, but what does that mean? We use chmod to change the permissions of files. It changes the mode by modifying the file mode bits associated with the file. For example, you might need to make a Bash script executable. This is easily done with the +x option, but what does this do? It changes the permissions for the user, the group, and other entities, and includes the executable option for all three of those. And we'll talk about those entities a little bit more in a little bit. So, let's move over to the lab. And this is Lab 29, File Permissions. In this lab, we're going to show chmod basics. We'll get into chmod permissions and a configuration table and some increased security with chmod. So we'll go to our Debian client here and we'll clear the screen of our rsync information, and we'll start with the lab. First, I want to make a directory…

Contents