In this recipe, we will learn how to provide nominated users or groups with the ability to execute a variety of commands with elevated privileges.
On CentOS Linux, many files, folders, or commands can only be accessed or executed by a user called root
, which is the name of the user who can control everything on a Linux system. Having one root user per system may suit your needs, but for those who want a greater degree of flexibility, a solid audit trail, and the ability to provide a limited array of administrative capabilities to a select number of trusted users, you have come to the right place. It is the purpose of this recipe to show you how to activate and configure the sudo (superuser do) command.