From the course: Cert Prep LPIC-1 Exam 102 (Version 5.0)
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Basic sudo configuration and usage - Linux Tutorial
From the course: Cert Prep LPIC-1 Exam 102 (Version 5.0)
Basic sudo configuration and usage
- [Narrator] Since the beginning of this course, we've been using Sudo to elevate privileges. We've also introduced the idea of using Su to switch to root, thus elevating privileges as well. With Su, you have to type in the root user's password. In order to do so, you have to know the root user's password. This can be problematic because if we have multiple users that need to elevate to root, then they all need to know the root user's password. If one leaves the company, then the root password has to be changed, and everyone needs to be updated. Switching users keeps you logged in as root for the whole session, increasing the chances of human error. With Sudo, you elevate privileges for one command only. Also by switching to root, there's very little in the way of accountability. All log messages say that the root user executed all commands. With Sudo, all command execution is logged individually. When using Su to…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.