On Wed, 15 Mar 2000, Giovanni Giorgi wrote:
> Excuse me,
> I'd like to allow the reading of the page only to "known" users (I'd
> like to set up a "private" Knowledge Base for some users of a laboratory
> and Swiki is a dream!!).
Cool!
> Can I set up a set of login/password for reading the page and not
> only for modification?
Yes.
> It is possible?
Definitely
> Which line must I add to the security setting? (I try to figure out
> reading SwikiSecurityModule comment, but it no helps me!).
Ouch. *Don't* do *that*! I hope you had a first aid kit handy.
> Thank you very very much!
You're very welcome.
Oops! The solution.
Peek at the admin swiki's security file.
Oh, what they hey, I'll include it!
<?xml version="1.0"?>
<security>
<default name="public">
<privileges type="allow">
</privileges>
</default>
This basically denies all privileges to the general public (by *not*
"allowing" any).
<group name="admins">
Use whatever name you want. You could have a read only group as well as a
read/write group.
<members>
<member>
<m type="user">admin</m>
<m type="password">password</m>
</member>
</members>
You can have one "member" (e.g., everyone uses the same password and user
name...heck you could make the user name blank) or many.
<privileges type="deny">
</privileges>
This inverts the above setting. It "denys" nothing to the admin group.
</group>
</security>
Hope this helps.
Cheers,
Bijan.