Controlling user access for edit pages in DokuWiki

Preview with edit links in the site.

DokuWiki by default allows all visitors of the site to edit your wiki pages. In some cases, random users can deface your wiki site and delete your pages. The image to the right will show the edit options available for any visitor on the site.

To prevent only certain users for editing the site, you can use the “Access Control List Management” in the Administration section of your DokuWiki to change the permissions of the users. This article will explain how to set the permissions for all visitors to read only and how to set specific uses to be allowed to edit the wiki.

Brief Outline of Permissions

Below is a table with a brief explanation of what each permission is for. The higher permissions will also include the lower permissions. For example, the Create permission will also allow the Read and Edit permission.

User Permissions in DokuWiki
Name Permission Description
1 None Wiki is not accessible at all
2 Read The wiki can be Read Only
3 Edit Can read and edit pages that are all ready created
4 Create Allows Pages and Namespaces to be created
5 Upload Allows media to be uploaded to pages
6 Delete Media files can be overwritten or deleted
7 Admin Restricted to the Admin user

Changing permissions for all users on DokuWIki

  1. Log into DokuWiki.
  2. Admin link DokuWiki

    Click the Admin link at the top right.

  3. Select the Access Conrtrol DokuWiki

    Select the Access Control List Management link.

  4. ACL Rules in DokuWiki

    Towards the bottom in the list of “Current ACL Rules“, To restrict all users from editing, select the “Read” radio button and click update.

    View with no edit links DokuWiki

    Now when visiting the site as a regular visitor, you will see the Edit features not available anymore..

Allowing certain registered users the Edit capability

  1. Log into DokuWiki.
  2. Click the Admin link at the top right.
  3. Select the Access Control List Management link.
  4. Click the Root directory link DokuWiki

    Select the “Root” directory in the Access Control List.

  5. Select the user to add permissions toDokuWiki

    In the “Permissions for” section, Select “User” and enter the username to allow access to edit.

    Click Select.


  6. Save Add new Entry DokuWiki

    In the Add new Entry box, select the “Edit” radio button and click Save.

    List of User permissions DokuWiki

    Now only the users that you add to the edit permission to will be allowed to edit any pages.

This concludes the user permissions tutorial.

Leave a Reply