Sudo

From Wiki-Tools

Jump to: navigation, search
edit infoboxSudo
Release status: Beta
Author: Dantman
Description: Allows sudoers to login to other user's accounts for maintenance.
Version: 0.1a
License: GPLv2+
Alpha: SVN (View Repo)

Download snapshot

Sudo gives the ability for Sudoers on the wiki to login to other users' accounts. This may be used for helping users set their own preferences, testing to see if something in the UI is affected by their login, or changing things under their name.

Sudo does log use of sudo to transfer to another user's accounts, however beyond that there is no tracking of what the sudoed user does. Be careful who you give sudo to as it can be abused in the worst of ways.

[edit] Install

To download the extension you can use one of three methods:

  • You can checkout the extension from subversion using:
 
  • Or you can checkout the entire repo of Wiki-Tools extensions into a nice wiki-tools directory which lets you put Wikimedia extensions in the extensions/ folder without the two SVN repos colliding:
svn checkout svn://svn.nadir-point.com/mediawiki-extensions/branches/stable/ extensions/wiki-tools/
  • Or if you really do not wish to use subversion you may grab a tarball snapshot .

To install the extension include one of the following lines into your LocalSettings.php depending on where you installed the extension:

require_once( "$IP/extensions/Sudo/Sudo.php" );
require_once( "$IP/extensions/wiki-tools/Sudo/Sudo.php" );

[edit] Configure

To use the extension you will need to configure a group with the sudo permission. You may wish to create a special sudo group for this task:

$wgGroupPermissions['sudo']['sudo'] = true;
Personal tools
Nadir Point Network