[pmwiki-users] Fwd: I cannot get the sitewide password to work for pmwiki

Patrick R. Michaud pmichaud at pobox.com
Tue Feb 10 09:43:57 CST 2009


On Mon, Feb 09, 2009 at 07:42:34PM -0500, Neil Herber (nospam) wrote:
> You need to set a default edit password as in:
> 
> $DefaultPasswords['edit'] = crypt('A example password');
> 
> Or if you only want the admin to be able to edit, then set:
> 
> $DefaultPasswords['admin'] = crypt('A example password');
> $DefaultPasswords['edit'] = '*';
> 
> This does not set the edit password to '*', rather it sets the crypted 
> value of the password to '*', but crypt will never return a one 
> character value. So the effect is that no-one can edit, except for the 
> admin.

The above works just fine, but I think we now suggest using '@lock'
instead of '*', as in:

    $DefaultPasswords['edit'] = '@lock';

This is more similar to what is done with setting passwords
via the ?action=attr interface.

Pm



More information about the pmwiki-users mailing list