Moinmoin page permission settings

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.