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,300 courses taught by industry experts.

Sudoers

Sudoers

- Users who have been given administrative privileges are also known as sudoers. And that is also the name of the user permissions file in Linux. Now we're going to be working in Lab9, so feel free to follow along with that. Let's go to our Debian client here and take a look. So the file within slash etc, and it's called sudoers. So if we were to take a look at that with the vim command, watch what happens. We'll press Enter. And it'll say on the bottom, permission denied. Okay, that's the principle of least privilege kicking in. Again, permission denied. We need to show that we have administrative capabilities on this system, that we are a super user. So we can just do that command and put sudo before it. Now, when we press Enter, take a look at what happens. It says here that this is read only on the bottom. Don't worry about the content just yet, but it says read only on the bottom. And that's because there's a more appropriate way to modify this file, and that's with the vi sudo…

Contents