/
githubmirror
/
sudo
Обзор
Документация
Войти
/
githubmirror
/
sudo
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v1.9.14
plugins/sample/README
22 строки
831 B
Todd C. Miller
The sample plugin is now built by default to avoid bit rot.
19 янв 2023, 17:38
19 янв 2023, 17:38
e3583e0
Код
Авторство
О чём код?
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.