sudoers

sudo security policy plugin

Determines a user's sudo privileges. It is the default sudo policy plugin. The policy is driven by the /private/etc/sudoers file or, optionally in LDAP. The policy format is described in detail in the SUDOERS FILE FORMAT section. For information on storing sudoers policy information in LDAP, please see sudoers.ldap(5).

Configuring sudo.conf for sudoers sudo consults the sudo.conf(5) file to determine which policy and I/O logging plugins to load. If no sudo.conf(5) file is present, or if it contains no Plugin lines, sudoers will be used for policy decisions and I/O logging. To explicitly configure sudo.conf(5)

       to use the sudoers plugin, the following configuration can be used.

             Plugin sudoers_audit sudoers.so
             Plugin sudoers_policy sudoers.so
             Plugin sudoers_io sudoers.so

       it is possible to specify optional arguments to the sudoers plugin in the sudo.conf(5) file.  Plugin
       arguments, if any, should be listed after the path to the plugin (i.e., after sudoers.so).  The arguments are only effective for
       the plugin that opens (and parses) the sudoers file.

       this is the sudoers_audit plugin.  
       Multiple arguments may be specified, separated by white space.  For example:

             Plugin sudoers_audit sudoers.so sudoers_mode=0400 error_recovery=false

       The following plugin arguments 
error_recovery=bool The error_recovery argument can be used to control whether sudoers should attempt to recover from syntax errors in the sudoers file. If set to true (the default), sudoers will try to recover from a syntax error by discarding the portion of the line that contains the error until the end of the line. A value of false will disable error recovery.
ldap_conf=pathname override the default path to the ldap.conf file.
ldap_secret=pathname override the default path to the ldap.secret file.
sudoers_file=pathname override the default path to the sudoers file.
sudoers_uid=uid override the default owner of the sudoers file. as a numeric user-ID.
sudoers_gid=gid override the default group of the sudoers file. a numeric group-ID (not a group name).
sudoers_mode=mode override the default file mode for the sudoers file. octal value.
For more information on configuring sudo.conf(5), please refer to its manual.

User Authentication

       users authenticate themselves before they can use sudo unless: