On 03/11/2007, shirish <shirishag75(a)gmail.com> wrote:
Hi all,
I'm making/playing with a wiki site where I want to make a
"user group" who in turn will give access to other people to do
edits/submissions stuff like that. No anonymous editing is done.
Right now I've done
# Prevent new user registrations except by sysops
$wgGroupPermissions['*']['createaccount'] = false;
This is done in LocalSettings.php
which basically prevents anybody from doing any edits except a single
user. I am using MySQL as my database. I saw this which might have
the goods which I need
http://www.mediawiki.org/wiki/Manual:%24wgGroupPermissions but unable
to make sense of it.
Do you actually want to restrict account creation, or just editing?
It's often easier to let people create their own accounts, and then
just have someone give them permission to edit. To do that, try
something like:
$wgGroupPermissions['*']['read'] = true; # Allow anons to read
$wgGroupPermissions['*']['createaccount'] = true; # Allow anons to
create accounts
$wgGroupPermissions['*']['edit'] = false; # Stop anon edits
$wgGroupPermissions['user']['edit'] = false; # Stop accounts without
permission editing
$wgGroupPermissions['editor']['edit'] = true; # Create a new user
group for people with permission to edit
$wgGroupPermissions['sysop']['userrights'] = true; # let sysop change
user permissions
$wgAddGroups['sysop'] = array( 'editor' ); # Allow sysops to grant
edit permissions on Special:Userrights
$wgRemoveGroups['sysop'] = array( 'editor'); # Allow sysops to remove
those permissions
Hope that helps. You may want to fine tune a few bits (who can create
pages, create talk pages, etc).