From the course: Linux: User and Group Management

Unlock the full course today

Join today to access over 24,800 courses taught by industry experts.

Elevate privileges using sudo

Elevate privileges using sudo - Linux Tutorial

From the course: Linux: User and Group Management

Elevate privileges using sudo

- [Instructor] There are multiple ways of elevating privileges which differ in important ways. Commands with the set user ID and set group ID bits which are covered in the Linux files information course, allow a user to elevate privileges without even prompting for a password. Due to the insecure nature of these commands, there are not many of them. The su command also allows you to switch to the root account, and in the process prompts you for the root password. In order to do this you have to know the root user's password. Having more than one person know the root user's password presents some interesting security challenges. Since the beginning of this course, we've been using the sudo command to elevate privileges. When using sudo, a user has to enter their own user password. This is far more desirable as users never need to know the root password, keeping it safe. In addition, the system can be configured in such a…

Contents