[pmwiki-users] Passwords: Group Attributes and eg @_site_edit
sandy at onebit.ca
Wed Jan 30 08:57:13 CST 2008
Rick Creighton wrote:
> I'm having a problem setting read passwords using Group Attributes. The
> situation on the wiki is this:
> -There is no read password by default
> -I'm operating a shared password system (rather than AuthUser or
> UserAuth, etc)
> -There are site-wide passwords for edit, upload, attr defined in config.php
> -I have defined more than one edit password, using the array command:
> $DefaultPasswords['edit'] = array(crypt('alpha'), crypt('beta'));
> -There is a group within the wiki (let's call it PrivateGroup) which I'd
> like to make readable only by people who know an edit password
> -I tried to implement this by entering @_site_edit as the read password
> on PrivateGroup.GroupAttributes
> But it didn't work as I had hoped. I got the following outcomes:
> -When I go to PrivateGroup.HomePage and enter an edit password, I cannot
> read the page (though I can edit it)
> -When I go to PrivateGroup.GroupAttributes and enter an edit password, I
> CAN read the page (and also edit it)
> -If I change the attributes of PrivateGroup.HomePage (and of each other
> page in the group) individual, and set the read password to @_site_edit
> then everything works as intended.
> My question is:
> Is this a feature of PmWiki (that you cannot use @_site_XXXX with
> GroupAttributes) or has something gone wrong with my particular
> If it's a normal feature of PmWiki, does anyone have any work-around
> suggestions (other than editing the attributes of each page individually)?
> If it's a problem with my particular installation, does anyone have any
> ideas where to look?
> Many thanks,
For a work-around:
You can set the read password on PrivateGroup.GroupAttributes. You will
have to list all the passwords you want to allow.
I remember some discussion about having to retype the entire list if you
want to add or remove a password. AuthUser is nice for this because you
will see real letters rather than stars, which makes it easier.
Question for another person: Can AuthUser groups contain other groups?
The manual says
@writers: alice, bob
carol: @writers, @editors
@admins: alice, dave
but doesn't mention
@MyEditors: @writers, @editors, bob
More information about the pmwiki-users