I set up a private Wiki, where only logged in users can view and edit pages.
Is it possible to create a generic login with view only permissions, so that more users could view the wiki with same login?
I set up a private Wiki, where only logged in users can view and edit pages.
Is it possible to create a generic login with view only permissions, so that more users could view the wiki with same login?
If I understand you correctly, you can do this by restricting editing to a special user group and allow everyone else to be able to read the Wiki. See Manual:Preventing access#Restrict editing.
Ok, so I create a group for editors, and a group for view only, and both need to be logged in in order to view the wiki, right?
I found out that I can modify users groups one by one, but is it possible to modify more at once?
Probably don't need to set up a separate group for viewing, it should be there by default.
Haven't tested it, but the following should work:
# Disable reading by anonymous users
$wgGroupPermissions['*']['read'] = false;
# Disable anonymous editing
$wgGroupPermissions['*']['edit'] = false;
# Prevent new user registrations except by sysops
$wgGroupPermissions['*']['createaccount'] = false;
# Restrict editing by all but sysop and one other user group ("editors")
$wgGroupPermissions['user']['edit'] = false;
$wgGroupPermissions['sysop']['edit'] = true;
$wgGroupPermissions['editors']['edit'] = true;
Regarding the second question, I don't think its natively possible i.e. without using some script or coding.
Just another thought on this: how can I restrict only one specific user to Read Only access?
One way would be to create a new user group with that one specific user, OR the simpler solution would probably be to block the user from editing. See Help:Blocking users.
Ohh, too early to celebrate... As I tested the blocked user from the same IP address, it automatically blocked my rights as well. So I guess I need to do a group and assign that one specific user to the group.
This shouldn't be an issue.
You probably kept the option "Automatically block the last IP address used by this user, and any subsequent IP addresses they try to edit from" to its default checked state. Just uncheck that and it should be fine.
For details, see Autoblock.