Everything You Need to Know About sudo | Linux Essentials Tutorial

preview_player
Показать описание
Sudo is a fundamental Linux command that allows a system administrator to delegate authority to give certain users, or groups of users, the ability to run commands as root or another user. In this video, we'll cover the basics of sudo and how it works.

Chapters:
0:00 Introduction
0:41 Why Do We Need sudo?
2:10 Check If sudo Is Installed
3:00 What Group is sudo In?
5:50 Which Permissions Can sudo Access?
6:30 Running apt update with sudo
7:00 Running sudo with the Previous Command
8:20 What is the /etc/sudoers file?
13:00 How to Properly Edit the sudoers File
18:20 Setup sudo Access Without a Password
19:20 A Quick Review
20:30 Including an Error On Purpose
23:15 Conclusion

#Linode #AlternativeCloud #sudo #Linux
Product: Linode, Linux, sysadmin; Jay LaCroix;
Рекомендации по теме
Комментарии
Автор

Your tutorials are very appreciated; they are clear and well thought out so that every possible question is answered and there is no confusion leftover, with some side knowledge showing useful tricks (like !! enters the previous command, I did not know this!)

Ethorbit
Автор

Just love the linux essentials series! Can't wait the next video

JoelTalom
Автор

The leftmost picture behind your head is too high.

moosehole
Автор

I am literally brand new to Linux so these videos have been helpful.
on a completely unrelated note, I hope you fixed that multi-frame poster on the wall behind you...

jakspica
Автор

Nice! I just learned how to remove the password requirement in WSL. Thanks for your videos.

kellypainter
Автор

Thank you Teacher for all yr teaching...
Everytime I got new thing to learn from u ..
U are awesome ⭐

runnerlinux
Автор

just gratitude to the makers n explainer

behindthescene
Автор

Thank you for the video, I also just started reading "SUDO Mastery " by Michael W Lucas

MarkVanderberg
Автор

"sudo !!"
It is going to help me a lot, thank you!!

PunitChoudhary
Автор

It's easy to understand with RunAs and selected CmdLines. Can you give an example of "host restriction"? It's so obscure that it's almost impossible to imagine the usefulness that this function brings.

huyvole
Автор

Many thanks. Nice instructional video!

RichardFreeberg
Автор

I really love the part, of giving partial root access.

kennethjakobsen
Автор

If you type h or help when visudo gives you an error, then it will give you the options available.

minecraftchest
Автор

Great video. My OCD can't stop looking at that left hand picture on your wall though .. it's not aligned!!!

simonbaxter
Автор

One thing to be aware of. If you put something in /etc/sudoers or /etc/sudoers.d and it contains an error, sudo will refuse to run, and you need root permissions to edit /etc/sudoers and /etc/sudoers.d. This can be quite a conundrum if you don't, as is the default, have a password on the root account. (I learned, from this, that you should use sudo -s to get a root shell to manipulate /etc/sudoers, and then su back to a user account and sudo echo hello just to check sudo is working fine before closing the root shell.)

Chalisque
Автор

Hi Jay your video is very informative, thanks for all info, can you make video o rbash and rbash is how different from this sudoers configured command in sudoers file, thank you

anandrai
Автор

Thanks for showing us the finer settings on sudo. Since we can restrict a user to elevate apt, is there anyway to restrict the user to only use "apt update" and "apt upgrade"? In other words, restrict not only the program but specific sytanx. This would allow a user to only update and upgrade but not install new packages.

TechieZeddie
Автор

At 13:28, short this does not work with a Pi. For the Pi, it's: sudo nano /etc/sudoers

tubeDude
Автор

I have been playing around with Linode last couple of months and I think it would be useful to have a post-install script I would set up a few things on a new server install. By creating a new user on the server and making them part of the SUDO group, Removing root login, Doing upgrades and updates and activating automatic updates, installing some programs that are not installed by default, removing the capability of logging with password and of course before that loading your RSA keys. And I like my prompt certain way so I would like to add that to the script. Maybe sometime you could do a video on such a script?

MarkVanderberg
Автор

Interesting thing with sudoedit is it don't know some settings (at least version on debian 10) and show warning when file are 100% correct, so it can lead to skip and save file with actual mistake

hoterychannel