| 1 |
This is a sample sudo policy plugin. See the sudo_plugin manual for |
| 2 |
information on writing your own plugin. |
| 3 |
|
| 4 |
The sample policy plugin is not installed by default. It can be installed |
| 5 |
by running "make install" as the superuser from the plugins/sample |
| 6 |
directory. |
| 7 |
|
| 8 |
To actually use the sample plugin, you'll need to modify the |
| 9 |
/etc/sudo.conf file. Caution: you should not make changes to |
| 10 |
/etc/sudo.conf without also having a root shell open repair things |
| 11 |
in case of an error. To enable the plugin, first comment out any |
| 12 |
existing policy Plugin line in /etc/sudo.conf, for example: |
| 13 |
|
| 14 |
Plugin sudoers_policy sudoers.so |
| 15 |
|
| 16 |
Then add a line for the sample plugin: |
| 17 |
|
| 18 |
Plugin sample_policy sample_plugin.so |
| 19 |
|
| 20 |
You may need to create /etc/sudo.conf if it does not already exist. |
| 21 |
|
| 22 |
Note that you may only have a single policy plugin defined. |