We can't find the internet
Attempting to reconnect
Something went wrong!
Hang in there while we get back on track
Linux Crash Course - sudo
Summary
Description
When you need to run Linux commands with elevated privileges, sudo is the tried and true method to run commands as another user (such as root). In this introductory tutorial, we'll take a look at some of the inner-workings of sudo.
*π§ Donate to Learn Linux TV and Receive a PDF with tips for switching to Linux*
Contains over 40 pages of tips and recommendations to help make your transition easier!
Check it out here β https://learnlinux.link/linux-desktop-tips
*π§ Get an Awesome Linux Command Cheat Sheet*
For just $3, This brand-new PDF cheat sheet features all the commands you should know, as well as some of Jay's favorite aliases and tweaks!
β’ Download the PDF here β https://learnlinux.link/linux-commands
*π§ Spin up some Linux Servers with Digital Ocean*
Digial Ocean is a great way to quickly spin up some Linux machines!
β’ Check it out here β https://learnlinux.link/digitalocean (Affiliate Link)
*π§ Support Learn Linux TV*
β’ Channel Membership β https://learnlinux.link/member
β’ Patreon β https://learnlinux.link/patron
β’ Spin up your very own Linux server β https://learnlinux.link/digitalocean
β’ Linux swag β https://merch.learnlinux.tv
β’ Check out Netdata β https://learnlinux.link/netdata
β’ Jay's Gear β https://learnlinux.link/amazon
_Note: Royalties and/or commission is earned from each of the above links_
*Support Linux Learning!*
β’ Grab some Linux swag from the official Merch Shop β https://merch.learnlinux.tv
β’ Become a Channel Member here on YouTube β https://learnlinux.link/member
β’ Become a Patron and gain access to exclusive perks β https://learnlinux.link/patron
β’ 5% discount on LPI exam vouchers β https://learnlinux.link/lpi-voucher
β’ Check out my latest book, Mastering Ubuntu Server 4th Edition β https://ubuntuserverbook.com
β’ Grab an awesome Pi-powered KVM β https://learnlinux.link/tinypilot
β’ Jay's Gear β https://learnlinux.link/amazon
_Note: Royalties and/or commission is earned from each of the above links_
*β° TIME CODES*
00:00 - Intro
02:44 - sudo overview
04:12 - Notes about installing sudo
05:01 - The sudo group
07:52 - Listing sudo privileges
09:00 - What to do when you forget to use sudo
10:22 - The /etc/sudoers file
14:57 - Editing the /etc/sudoers file with visudo
17:43 - Restricting sudo to specific commands
20:23 - sudo without a password
22:32 - Undoing errors while using visudo*π Full Linux Courses*
β’ Linux Crash Course β https://linux.video/cc
β’ tmux β https://linux.video/tmux
β’ vim β https://linux.video/vim
β’ Bash Scripting β https://linux.video/bash
β’ Proxmox VE β https://linux.video/pve
β’ Ansible (Udemy) β https://learnlinux.link/ansible
β’ Linux Essentials (Udemy) β https://learnlinux.link/linux-essentials
*π More About Learn Linux TV*
β’ Main site β https://www.learnlinux.tv
β’ Community Forums β https://community.learnlinux.tv
β’ Github Account β https://github.com/LearnLinuxTV
β’ Content Ethics β https://www.learnlinux.tv/content-ethics
β’ Request Paid Assistance β https://www.learnlinux.tv/request-assistance
*β οΈ Disclaimer*
Learn Linux TV provides technical content that will hopefully be helpful to you and teach you something new. However, this content is provided without any warranty (expressed or implied). Learn Linux TV is not responsible for any damages that may arise from any use of this content. Always make sure you have written permission before working with any infrastructure and that you are compliant with all company rules, change control procedures, and local laws.
#Linux #DevOps #sudo
Translated At: 2025-06-29T15:08:28Z