These users who can use the sudo command need to have an entry in the sudoers file located at “/etc/sudoers”. Remember that to edit or view the sudoers file you have to use sudo command. To edit the sudoers file it is recommended to use “visudo” command.
Where is the sudo command?
The sudo command allows you to run programs with the security privileges of another user (by default, as the superuser). It prompts you for your personal password and confirms your request to execute a command by checking a file, called sudoers , which the system administrator configures.
Where is sudo installed on Linux?
The sudo configuration file sudoers is in most cases located in /etc/sudoers. You can use ls command to locate this file. Note the default and “must be” permissions of a /etc/sudoers file.