Mediawiki user permissions

Posted on August 12, 2008 by nseidm1.
Categories: Mediawiki, permissions, user.

If your Mediaiwki installation is not going to be completely editable by the public you will need to change various permissions options in the LocalSettings.php configuration file. For instance if you want to prevent account creation use:

// Only SysOp (Admin) can create accounts -
$wgGroupPermissions['*']['createaccount'] = false;

If you want to prevent people from creating new pages use:

$wgGroupPermissions['*'    ]['createpage']      = false;

If you want to allow people to create talk pages use:

$wgGroupPermissions['*'    ]['createtalk']      = true;

Or if you want to completely prevent users from editing, without logging is as a registered user, use:

$wgGroupPermissions['*']['edit'] = false;

Share, Enjoy, and Support:
  • Digg
  • del.icio.us
  • NewsVine
  • StumbleUpon
  • Technorati