sudo/plugins/sample
Todd C. Miller 81acb2bd7b Regenerate dependencies 2024-02-21 13:17:54 -07:00
..
Makefile.in Regenerate dependencies 2024-02-21 13:17:54 -07:00
README The sample plugin is now built by default to avoid bit rot. 2023-01-19 07:38:51 -07:00
sample_plugin.c Typographical and Grammatical fixes 2023-11-28 15:00:04 -07:00
sample_plugin.exp Rename foo.sym -> foo.exp 2012-06-20 12:58:16 -04:00

README

This is a sample sudo policy plugin.  See the sudo_plugin manual for
information on writing your own plugin.

The sample policy plugin is not installed by default.  It can be installed
by running "make install" as the superuser from the plugins/sample
directory.

To actually use the sample plugin, you'll need to modify the
/etc/sudo.conf file.  Caution: you should not make changes to
/etc/sudo.conf without also having a root shell open repair things
in case of an error.  To enable the plugin, first comment out any
existing policy Plugin line in /etc/sudo.conf, for example:

    Plugin sudoers_policy sudoers.so

Then add a line for the sample plugin:

    Plugin sample_policy sample_plugin.so

You may need to create /etc/sudo.conf if it does not already exist.

Note that you may only have a single policy plugin defined.