Extension:GoToShell

From MediaWiki.org
Jump to: navigation, search

Other languages:
Deutsch • ‎English • ‎español • ‎français • ‎日本語 • ‎polski • ‎português do Brasil • ‎sicilianu
MediaWiki extensions manualManual:Extensions
Crystal Clear action run.png
GoToShell

Release status:Extension status stable

GoToShell.png
ImplementationTemplate:Extension#type Special page
DescriptionTemplate:Extension#description Implements a special page that takes the user to shell and back
Author(s)Template:Extension#username Nathan Larson (Leucostictetalk)
Latest versionTemplate:Extension#version 1.0.1 (2016-10-25)
MediaWikiTemplate:Extension#mediawiki 1.23+
PHPTemplate:Extension#php 5.3
Database changesTemplate:Extension#needs-updatephp No
LicenseTemplate:Extension#license GNU General Public License 3.0 or later
Download
ParametersTemplate:Extension#parameters

$wgGoToShellCommand

Translate the GoToShell extension if it is available at translatewiki.net

Check usage and version matrix.

The GoToShell extension implements a special page that takes the user to shell and back. This extension is free software than can be modified and distributed under the terms of the GPL and/or the DWTSYWWI (Do Whatever The Shell You Want With It) license. By default, shell is reserved for bureaucrats only, but you can change $wgGroupPermissionsManual:$wgGroupPermissions so that other deserving users can go to shell too.

Installation and configuration[edit]

Installation[edit]

  • Download and place the file(s) in a directory called GoToShell in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    require_once "$IP/extensions/GoToShell/GoToShell.php";
    
  • YesY Done - Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration[edit]

$wgGoToShellCommand[edit]

Set this to whatever you want it to do; e.g. "ls -l", "./maintenance/php update.php --quickManual:update.php", "rm -rf /incriminating_data", etc.

See also[edit]