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 - Linux Tutorial
From the course: Complete Guide to Linux Security: Protecting Your Linux Server Environment
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…
Download courses and learn on the go
Watch courses on your mobile device without an internet connection. Download courses using your iOS or Android LinkedIn Learning app.
Contents
-
-
(Locked)
Learning objectives1m 34s
-
(Locked)
Introduction to nftables and the nft command2m 34s
-
(Locked)
nftables setup4m 5s
-
(Locked)
Tables > Chains > Rules2m 31s
-
(Locked)
Building the nftables configuration, part 18m 41s
-
(Locked)
Building the nftables configuration, part 28m 39s
-
Saving and restoring the nftables configurations8m 36s
-
(Locked)
Translating iptables to nftables7m 49s
-
(Locked)
-
-
(Locked)
Learning objectives1m 18s
-
(Locked)
Review of SSH1m 47s
-
(Locked)
Using keys to connect via SSH12m 57s
-
(Locked)
The sshd_config file3m 19s
-
(Locked)
Modifying the default SSH port7m 32s
-
(Locked)
Disabling password-based SSH2m 57s
-
(Locked)
Disabling root login via SSH2m 32s
-
(Locked)
Exclusive SSH groups4m 37s
-
(Locked)
Authentication settings10m 6s
-
(Locked)
Terminating SSH connections, part 17m 45s
-
(Locked)
Terminating SSH connections, part 26m 51s
-
(Locked)