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 22,600 courses taught by industry experts or purchase this course individually.

Elevating privileges using sudo

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…

Contents