[pmwiki-users] I doest undestand group word

Patrick R. Michaud pmichaud at pobox.com
Sun Mar 6 10:17:18 CST 2005


On Sun, Mar 06, 2005 at 11:02:24AM -0500, Radu wrote:
> If you want to set a password only for that page, yes, it's right.
> 
> But if you want to set passw for all pages in a group (for example 
> MyGroup), you need to create a text file in the /local/ folder, fill it 
> with text like
> 
> <?php if (!defined('PmWiki')) exit();
> $WikiTitle = "Radu's family on the Monicsoft PmWiki";
> $DefaultPasswords['edit'] = crypt('pass1');
> $DefaultPasswords['read'] = crypt('pass2');
> ?>
> 
> Then change the name of that file to <Groupname>.php
> For example, for MyGroup, call it MyGroup.php

This is a common mistake, but the above doesn't work for setting a 
'read' group password.  If you use MyGroup.php to set a password
via $DefaultPasswords, then authors can still access
read-protected pages via a variety of other means from other pages
(because the MyGroup.php file is only loaded when the browser is
pointed at a page in MyGroup).  $DefaultPasswords only works as a site-wide
default, and should only be placed in the local/config.php file.

To set passwords for MyGroup, change the passwords on 
MyGroup.GroupAttributes.

Pm



More information about the pmwiki-users mailing list