2011-06-29 19:17:50 +02:00
|
|
|
|
|
|
|
.. _plugin-sudo:
|
|
|
|
|
|
|
|
The Sudo plugin
|
|
|
|
===============
|
|
|
|
|
2011-10-29 13:29:17 +02:00
|
|
|
.. include:: unofficial.inc
|
|
|
|
|
2011-10-29 13:19:46 +02:00
|
|
|
Commands
|
|
|
|
--------
|
|
|
|
|
2011-06-29 19:17:50 +02:00
|
|
|
.. _command-sudo-sudo:
|
|
|
|
|
|
|
|
sudo sudo <commande> [<arg1> [<arg2> ...]]
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2011-10-29 12:39:38 +02:00
|
|
|
Runs the command following the Sudo rules.
|
|
|
|
|
|
|
|
.. _command-sudo-remove:
|
|
|
|
|
|
|
|
sudo remove <id>
|
|
|
|
^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
Remove a Sudo rule.
|
|
|
|
|
|
|
|
.. _command-sudo-fakehostmask:
|
|
|
|
|
|
|
|
sudo fakehostmask <hostmask> <command>
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
Runs *<command>* as if you were wearing the *<hostmask>*. Of course, usage
|
|
|
|
of the command is restricted to the owner.
|
2011-06-29 19:17:50 +02:00
|
|
|
|
|
|
|
.. _command-sudo-add:
|
|
|
|
|
|
|
|
sudo add [<priority>] <name> {allow,deny} [<hostmask>] <regexp>
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
Sets a new Sudo rule, called *<name>* with the given *<priority>*
|
|
|
|
(greatest numbers have precedence),
|
|
|
|
allowing or denying to run commands matching the pattern *<regexp>*,
|
|
|
|
from users to run commands as wearing the *<hostmask>*.
|
|
|
|
The *<priority>* must be a relative integer.
|
|
|
|
If *<priority>* is not given, it defaults to 0.
|
|
|
|
The *<hostmask>* defaults to your hostmask.
|
|
|
|
The *<hostmask>* is only needed if you set an 'allow' rule.
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-10-29 12:39:38 +02:00
|
|
|
.. _plugin-sudo-config:
|
|
|
|
|
|
|
|
Configuration
|
|
|
|
-------------
|
|
|
|
|
|
|
|
.. _supybot.plugins.Sudo.public:
|
|
|
|
|
|
|
|
supybot.plugins.Sudo.public
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
Default value: True
|
|
|
|
|
|
|
|
Determines whether this plugin is publicly visible.
|
2011-06-29 19:17:50 +02:00
|
|
|
|