From the course: CompTIA Linux+ (XK0-005) Cert Prep

Unlock the full course today

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

Manage sudo users

Manage sudo users

- [Instructor] Linux has the concept of users and groups but the most powerful tool for elevating privileges is sudo which also has similar concepts of its own. Groups of users in sudo are called User Aliases. When you want to assign admin rights to a group of users you create a User Alias and place a relevant users in it. Sudo has a second grouping of users called Runas Alias. These are users that commands can be run as, for instance if files are owned by Apache, you might want to run the web admin tools as Apache instead of root. In the same vein, sudo allows us to group together similar commands into a Command Alias. For instance, we could group all web admin commands together into web tools Command Alias. Sudo also allows grouping of hosts. This would be useful if we wanted to allow all web admins to access all web tools on all web servers. In that example we'd group together all the web servers into a Host Alias.…

Contents