From the course: Linux Foundation Certified System Administrator (LFCS) Cert Prep

Unlock this course with a free trial

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

Manage user privileges

Manage user privileges

- [Instructor] Now let's examine how to manage user privileges in Linux. Every time we had to make some important changes to the system, we used sudo in our commands. That's because only the root user, also called superuser, can make changes to important areas of the operating system. However, when we put sudo in front of a command, that command runs as if the root user executed it. So how come our user is allowed to use sudo? If we type in this command, we'll see that our user is a part of the sudo group. Whoever is a part of this group is automatically allowed to use sudo. That means the easiest way to give another user sudo privileges is to add them to the sudo group. To add our user, trinity, to the sudo group, we would type in this. And that's it. Now, this user can get administrator privileges whenever they want, but this gives them power to do anything they want on the system. What if we want more fine tuned control? Then we could take a different approach. Now there's a…

Contents