The following 444 words could not be found in the dictionary of 635 words (including 635 LocalSpellingWords) and are highlighted below:

able   about   above   acceptable   accepted   accessed   accidently   account   acl   add   Add   Admin   admin   admins   advantage   advice   affecting   again   algorithm   all   All   allow   allowed   allowing   already   an   Anchor   and   And   anonymous   anonymously   another   anybody   anything   applied   apply   arbitrary   arwdr   asterisk   at   attached   attachments   Attachments   authenticated   authentication   automatically   Available   available   aware   Bad   bad   Basic   basically   Basics   Be   be   because   before   begins   behavior   being   besides   Big   bigger   Boss   but   by   called   can   case   cases   clean   closed   comments   Comments   community   company   configuration   Configuration   configure   configured   Consequences   considered   containing   Contents   continue   continues   control   Control   cookie   course   creator   currently   Default   default   defaults   define   definition   Delete   delete   denied   depend   Description   destroy   difference   direct   disabled   Doe   does   doing   don   done   Due   each   easier   easily   easy   editing   Editor   edits   either   else   enable   enabled   enforced   engine   entries   entry   Entry   equivalent   even   every   everyone   exact   exactly   example   examples   except   existing   extend   few   finally   Finally   finished   flexible   following   follows   for   force   forcing   forget   forgetting   form   found   Friends   friends   from   functionality   further   general   get   give   given   Given   giving   good   granted   granting   group   Group   groups   Groups   Guy   having   he   hijacking   him   hostile   how   If   if   ignored   important   in   In   Include   including   information   inheriting   Inheriting   insert   inserts   intranet   introduced   item   items   its   Joe   just   keep   know   known   Known   last   left   let   Lets   level   like   line   lines   list   Lists   locked   locking   locks   logic   long   look   looking   Ls   make   makes   Master   match   matched   matches   matching   maybe   mean   means   Member   member   might   Miller   modifier   modifiers   modify   most   much   name   Name   named   names   necessary   need   needed   new   no   nobody   non   Notice   Now   now   Of   of   ok   older   once   one   Only   only   onto   openness   option   Or   or   order   Other   other   others   otherwise   out   page   Page   part   people   permission   place   placed   point   prefixes   probably   processed   Processing   processing   protected   protection   public   Public   put   queried   re   read   real   really   regex   remove   Rename   represent   representing   requested   requesting   resource   resources   revert   revoking   right   rights   same   second   section   security   sense   senseful   served   server   set   settings   setup   short   should   shown   similar   simple   single   site   Smith   So   so   soft   Some   some   someone   something   Sometimes   sort   space   spaces   special   specific   specified   Specifing   specify   still   stop   stopping   stops   stuff   subpage   such   support   suppose   Syntax   syntax   system   Table   tell   tells   temporarily   text   that   That   their   them   then   there   these   These   they   They   thing   third   this   This   those   though   through   to   To   too   top   triggers   true   trust   Trusted   trusted   trying   turn   turned   two   unless   unready   up   Usage   use   used   useful   user   User   username   usernames   users   Using   using   valid   ve   version   very   want   wants   way   Web   web   webmasters   Webmasters   what   When   when   Where   where   which   While   while   who   why   wikiconfig   will   with   without   won   word   words   work   works   would   writable   write   writing   written   yet   You   you   your  

Clear message

Access Control Lists

When Access Control Lists, or ACLs for short, are turned on, you will be able to control who may do what on or with a wiki page.

1. Contents

  1. Contents
  2. Basics
  3. Syntax
  4. Available rights
  5. Processing logic
  6. Inheriting from defaults
  7. Configuration
  8. Groups
  9. Usage cases
    1. Public community Wiki on the Internet
    2. Wiki as a simple CMS
    3. Wiki on Intranet
    4. Wiki as a public company page
    5. Comments on read-only page

2. Basics

The first thing to know is that acl support is disabled by default. See Configuration for how to turn it on.

Using ACLs in moin is as easy as including a control line at the top of the page you want to control, like the following one:

#acl SomeUser:read,write All:read

/!\ You need to already have admin rights to be able to add or modify such an acl line.

This will allow SomeUser to read and write on that page, while every other user will be able to read but not edit it (unless you've done some special setup in the site configuration).

Attachments are also protected by the ACLs of the page they are attached to, when served through the moin wiki engine.

/!\ Attachments are not protected when the server is configured for direct access to the attachments (i.e. when the attachments option in wikiconfig.py is used).

3. Syntax

The syntax for each line is as follows:

#acl [+-]User[,SomeGroup,...]:[right[,right,...]] [[+-]OtherUser:...] [[+-]Trusted:...] [[+-]Known:...] [[+-]All:...] [Default]


4. Available rights

These are the available rights you can use in an ACL entry. Be aware that DeletePage and RenamePage are not allowed if the user is not Known, even if a delete right is granted.


5. Processing logic

When some user is trying to access some ACL-protected resource, the ACLs will be processed in the order they're found. The first ACL matching the user will tell if the user has access to that resource or not and processing will stop once the user matched an ACL entry.

(!) Due to that first match algorithm, you should sort your ACLs: first single usernames, then special groups, then more general groups, then Known and at last All.

For example, the following ACL tells that SomeUser is able to read and write the resources protected by that ACL, while any member of SomeGroup (besides SomeUser, if part of that group) may also admin that, and every other user is able to read it.

#acl SomeUser:read,write SomeGroup:read,write,admin All:read

To make the system more flexible, there are also two modifiers: the prefixes '+' and '-'. When they are used, processing will only stop when requested right for some specific user matches the user and right(s) in the given ACL entry, but will continue if you are looking for another right (or another user). In case of '+' the right will be given, in case of '-' the right will be denied (for the stopping case).

As an example, the above ACL could also be written as:

#acl -SomeUser:admin SomeGroup:read,write,admin All:read

This example is only special for SomeUser, because when admin right is queried for SomeUser, it will be denied and processing stops. In any other case, processing continues.

Or even:

#acl +All:read -SomeUser:admin SomeGroup:read,write,admin

+All:read means that when any user is requesting read right, it will be given and processing stops. In any other case, processing will continue. If admin right is queried for SomeUser, it will be denied and processing stops. In any other case, processing will continue. Finally if a member of SomeGroup is requesting some right it will be given if specified there and denied, if not. All other users have no rights, except when given by configuration.

Notice that you probably won't want to use the second and third examples in ACL entries of some page. They're very useful on the site configuration entries though.

6. Inheriting from defaults

Sometimes it might be useful to give rights to someone without affecting too much the default rights. For example, let's suppose you have the following entries in your configuration:

acl_rights_default = "TrustedGroup:read,write,delete,revert All:read"
acl_rights_before  = "AdminGroup:admin,read,write,delete,revert +TrustedGroup:admin"

Now, you have some page where you want to give the "write" permission for SomeUser, but also want to keep the default behavior about All and TrustedGroup. You can easily do that using the Default entry:

#acl SomeUser:read,write Default

This will insert the entries from acl_rights_default in the exact place where the Default word is placed. In other words, the entry above, with the given configuration, is equivalent to the following entry:

#acl SomeUser:read,write TrustedGroup:read,write,delete,revert All:read

Lets look at the first example in this section: acl_rights_before  = "AdminGroup:admin,read,write,delete,revert +TrustedGroup:admin"

ACLs are processed in the order of "before" then "page/default" and then "after", "left to right".

So it begins at the left of "before" with AdminGroup:... - this matches if you are a member of admin group. If it matches, you get those rights (arwdr) and ACL processing STOPS.

If it does not match, ACL processing continues with +TrustedGroup:admin - this matches if you are a member of TrustedGroup.

If it matches, you get the rights (a) and - now the difference because of the modifier, - ACL processing CONTINUES! So if there is another match for that group or your user or Known: or All: you will get those rights, too.

If it does not match, ACL processing continues - with the page ACLs (if there are any) or with default ACLs (if there are no pages ACLs) and finally with the "after" ACLs.

While they represent the same thing, inheriting from the defaults has the advantage of automatically following any further change introduced in the defaults.

7. Configuration

These are the configuration items used to setup ACLs on a moin site.






If true will enable ACL support.



applied before page or default ACLs



applied after page or default ACLs


"Trusted:read,write,delete,revert Known:read,write,delete,revert All:read,write"

only used when no other ACLs are given on the page being accessed


["read", "write", "delete", "revert", "admin"]

These are the acceptable (known) rights (and the place to extend, if necessary).

So you know now what it does, but what does it mean?

8. Groups

User groups make it easier to specify rights for bigger groups.

Only SomeUser's friends can read and edit this page:

#acl SomeUser:read,write SomeUser/FriendsGroup:read,write

SomeUser/FriendsGroup would be a page with each top-level list item representing a wiki username in that group:

#acl SomeUser:read,write,admin,delete,revert
 * JoeSmith
 * JoeDoe
 * JoeMiller

A page named AdminGroup could define a group of that name and could be also protected by ACLs:

#acl AdminGroup:admin,read,write All:read
 * SomeUser
 * OtherUser
   * This is currently ignored.
Any other text not in first level list will be ignored.

/!\ a first level list is one with only one space before the asterisk (and there also has to be one space after the asterisk). The following won't work:

  * some user
-- two spaces so doesn't work

You can configure which page names are considered as group definition pages (e.g. for non-english wikis):

page_group_regex =  '[a-z]Group$'    # this is the default

9. Usage cases

9.1. Public community Wiki on the Internet

The most important point here is to use ACLs only in cases where really needed. Wikis depend on openness of information and free editing. They use soft security to clean up bad stuff. So there is no general need for ACLs. If you use them too much, you might destroy the way wiki works.

This is why either ACLs should not be used at all (default) or, if used, the wikiconfig.py should look similar to that:

acl_rights_before = 'WikiEditorName:read,write,admin,delete,revert +AdminGroup:admin BadGuy:' 

The default acl_rights_default option should be ok for you:

acl_rights_default = 'Known:read,write,delete,revert All:read,write' 

A good advice is to have only a few and very trusted admins in AdminGroup (they should be very aware of how a wiki works or they would maybe accidently destroy the way the wiki works: by its openness, not by being closed and locked!).

If using AdminGroup, you should make a page called AdminGroup and use it to define some people who get admin rights.

Specifing BadGuy like shown above basically locks him out - he can't read or edit anything with that account. That makes only sense if done temporarily, otherwise you also could just delete that account. Of course, this BadGuy can also work anonymously, so this is no real protection (this is where soft security will apply).

9.2. Wiki as a simple CMS

If you want to use a wiki to easily create web content, but if you don't want edits by the public (but only by some webmasters), you maybe want to use that in your wikiconfig.py:

acl_rights_default = 'All:read' 
acl_rights_before  = 'WebMaster,OtherWebMaster:read,write,admin,delete,revert' 

So everyone can read, but only the Webmasters can do anything else. As long as they still work on a new page, they can put

#acl All: 

on it, so nobody else will be able to see the unready page. When being finished with it, don't forget to remove that line again, so that acl_rights_default will be used.

Some page(s) could also allow public comments (like one being called PublicComments), so you give more rights on that page:

#acl All:read,write 

9.3. Wiki on Intranet

If you want to use a wiki on your intranet and you trust your users (not doing hostile stuff like locking others out or hijacking pages) to use the admin functionality in a senseful way, you maybe want to use that:

acl_rights_default = 'Known:admin,read,write,delete,revert All:read,write'
acl_rights_before  = 'WikiAdmin,BigBoss:read,write,admin,delete,revert' 

So everyone can read, write and change ACL rights, WikiAdmin and BigBoss are enforced to be able to do anything, known users get admin rights by acl_rights_default (so they get it as long as no other ACL is in force for a page).


9.4. Wiki as a public company page

If you want to use a wiki as the company page, and don't want every user being able to change the company page content, you may want to use something like this:

acl_rights_default = "TrustedGroup:admin,read,write,delete,revert All:read"
acl_rights_before  = "AdminGroup:admin,read,write,delete,revert +TrustedGroup:admin"

This means that:

9.5. Comments on read-only page

You can easily add a comments section to a read-only page by using a writable subpage, and allowing users to write on it. For example, you can define SomePage like this:

#acl SomeUser:read,write All:read
'''Some read-only content'''


''' User comments '''

And SomePage/Comments like this:

#acl All:read,write
Add your comments about SomePage here.