Configuring sudo access
for administrative tasks149
Important NotePlease do not disable the wheel group directive unless there is an important reason to do so. This behavior is expected by other programs to be available and disabling it may cause some problems.
The third line, and all the lines starting with #,
are considered comments, and they are only intended to add descriptive content with no effect on the final configuration. It is possible to include other sudoers files from within the sudoers file currently being parsed using the include and @includedir directives Read drop-in files from /etc/sudoers.d (the # here does not mean a comment. The fourth line is the only exception to the previous rule. This line enables the /etc/
sudoers.d directory as a source for configuration files. We can drop a file in that folder and it will be used by sudo. For compatibility with sudo versions prior to 1.9.1,
include and #includedir are also accepted:
#includedir /etc/sudoers.d
The exception to this last rule is files that end with or contain a . (dot) character.
As you have seen, the default configuration enables root and the members of the wheel group to run any command as an administrator using sudo.
The easiest way to use it is to add a user to the wheel group to grant that user full admin privileges. An example of how to modify the usertest account to make it an admin account is as follows:
Share with your friends: