From the course: Red Hat Certified System Administrator (EX200) Cert Prep: 2 File Access, Storage, and Security
Unlock the full course today
Join today to access over 23,300 courses taught by industry experts.
Elevating privileges using sudo
From the course: Red Hat Certified System Administrator (EX200) Cert Prep: 2 File Access, Storage, and Security
Elevating privileges using sudo
- [Instructor] 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 switch to root, you are all powerful. Sudo is more granular in that an…
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.
Contents
-
-
-
Create and delete local user accounts5m 59s
-
(Locked)
Modify local user accounts5m 28s
-
(Locked)
Change passwords and adjust password aging for local user accounts4m 40s
-
(Locked)
Manage aging for local user accounts5m 45s
-
(Locked)
Create, delete, and modify local groups and group memberships5m 41s
-
(Locked)
Log in and switch users in multiuser targets2m 17s
-
(Locked)
Elevating privileges using sudo3m 28s
-
(Locked)
Challenge: Users and accounts1m 31s
-
(Locked)
Solution: Users and accounts2m 49s
-
-
-
-
-
-
-