[Mediawiki-l] MediaWiki installed, but I don't seem to have an administrator account
Alexis Moinet
alexis.moinet at fpms.ac.be
Fri Jun 2 07:13:24 UTC 2006
Nomad of Norad (David C Hall) a écrit :
> Once that is taken care of, one of the other things I want to do is set
> it up so people can sign up (create an account for themselves) but
> cannot edit pages or create new ones until I enable them to.
I was looking for the same thing and I did this :
In localsettings.php
$wgGroupPermissions['*' ]['read'] = true;
$wgGroupPermissions['*' ]['edit'] = false;
$wgGroupPermissions['*' ]['talk'] = false;
$wgGroupPermissions['*' ]['createpage'] = false;
$wgGroupPermissions['*' ]['createtalk'] = false;
$wgGroupPermissions['user']['move'] = false;
$wgGroupPermissions['user']['read'] = true;
$wgGroupPermissions['user']['edit'] = false;
$wgGroupPermissions['user']['createpage'] = false;
$wgGroupPermissions['user']['createtalk'] = false;
$wgGroupPermissions['user']['talk'] = false;
$wgGroupPermissions['user']['upload'] = false;
$wgGroupPermissions['user']['reupload'] = false;
$wgGroupPermissions['user']['reupload-shared'] = false;
$wgGroupPermissions['user']['minoredit'] = false;
> That is, I
> want to set things up so I have to select which users can edit, rather
> than them being able to edit just by having created an account.
>
in localsettings.php :
$wgGroupPermissions['editor']['move'] = true;
$wgGroupPermissions['editor']['read'] = true;
$wgGroupPermissions['editor']['edit'] = true;
$wgGroupPermissions['editor']['talk'] = true;
$wgGroupPermissions['editor']['createpage'] = true;
$wgGroupPermissions['editor']['createtalk'] = true;
$wgGroupPermissions['editor']['upload'] = true;
$wgGroupPermissions['editor']['reupload'] = true;
$wgGroupPermissions['editor']['reupload-shared'] = true;
$wgGroupPermissions['editor']['minoredit'] = true;
this will make a new group ('editor') available and as a
sysop/bureaucrat, you can allow the editor status to any user you want
simply adding them in the editor group.
More information about the MediaWiki-l
mailing list