I recently Installed PmWiki and want to make a Site like this: http://medesign.seas.upenn.edu/index.php
But PmWiki is a wiki software so everyone have access to edit pages - I dont want to have this.
But I dont know how to make a page like my example, I found out that AuthUser is doing something like athorization, but I dont know how to setup it correctly, just for lonely pages with:
So anybody can help me?
The steps provided will prevent access to http://yourwiki.com/pmwiki.php?n=SiteAdmin/AuthUser
page only, not for other pages. Also, it will prevent reading instead of editing, since you have set @admins
in read
field.
Here is a complete guide on how to activate AuthUser.
Basically, you have to add these two lines in the end of local/config.php:
include_once("$FarmD/scripts/authuser.php");
$DefaultPasswords['edit'] = array('@admins', 'id:USERNAME_1,USERNAME_2');
Just make sure to change USERNAME_1,USERNAME_2
to the users allowed to edit. So they doesn't need to be admins to edit a page.
Another method is to set a site wide password, so anyone who knows it can edit.
To do this, add the following line to the end of local/config.php:
$DefaultPasswords['edit'] = crypt('edit_password');