The access permission of moinmoin can reach the page level (page permission). That is, you can specify the access permission for a specific page by adding
Code similar to the following ):
# ACL + admin: write, read all: Read
The above Code indicates that this page may be read and written by admin, and others only have read permission.
Most of the time, we authorize a group, that is, to grant the same permissions to a group.To create a group:
1. Become an administrator:
Add the following line to the configuration file wikiconfig. py:
Acl_rights_default = U' + admin: Admin, delete known: read, write, revert all: read'
In this way, non-registered users only have the read permission. registered users (known indicates registered users) can read and write; AdmIn has administrator permissions and can be deleted or renamed. In short, the Administrator has admin permissions.
2. Create a group:
Suppose we want to create a trusted group named trustedgroup (Note: A group name should beIs a wikiname (Wiki name), which is composed of two (or more) Words in the upper-case letters.Words (no space between words), such as trustedgroup)
1) Enter findpage and create a wiki page named trustedgroup.
2) edit the trustedgroup. The list of all members is displayed in the form of a list. For example:
* Hitgnu
* Jeffrey
Because this page will affect the management of access permissions, you should set its permissions to only allow the Administrator to read and write, other users shouldThis does not have any permissions on it, so the final content of this page should be similar to the following method:
# ACL + admin: write, read all:
* Hitgnu
* Jeffrey
3. authorize specific user groups to access key pages:
After creating a user group, you can specify a page to grant special permissions to a specific group.The following content:
# ACL + admin: read, write, revert, delete trustedgroup: read, write, revert all:
In this way, Only Administrators and specified group members can view and edit the content of the page, effectively protectingSensitive content.