Main.SideBar (edit)PmWiki |
PmWiki has built-in support for password-protecting various areas of the wiki site. Passwords can be applied to individual pages, to WikiGroups, or to the entire wiki site. Note that the password protection mechanisms described here are only a small part of overall system (and wiki) security, see PmWiki.Security? for more discussion of this. PmWiki supports several levels of access to wiki pages: read passwords allow viewing the contents of wiki pages
edit passwords control editing and modification of wiki pages
attr passwords control who is able to set passwords on pages (and potentially other future attributes)
if uploads are enabled, upload passwords control uploading of files and attachments
Finally, there is an By default, PmWiki is configured with empty $DefaultPasswords['admin'] = crypt('mysecret');
Of course, anyone able to view config.php would be able to find out your secret password, so we'd like to encrypt it somehow. Add $1$hMMhCdfT$mZSCh.BJOidMRn4SOUUSi1 (it may be different on your system). This can then be put directly into config.php as:
$DefaultPasswords['admin'] = '$1$hMMhCdfT$mZSCh.BJOidMRn4SOUUSi1';
(Note: The crypt keyword and parenthesis have been removed, since the inserted text is already encrypted. The sample-config.php has the crypt keyword present, be sure to remove this when switching your passwords to pre-encrypted.) Note that the encrypted password has to be enclosed in single-quotes. Here, the password is still " Similarly, you can set TODO: give example of encrypted password In PmWiki, page passwords override group passwords, group passwords override the default passwords, and the admin password always allows access. This gives a great deal of flexibility in controlling access to wiki pages in PmWiki. You can also use the special password "nopass" (defined by the $AllowPassword variable) to have a non-password protected page within a password-protected group, or a non-password protected group with a site-wide default password set. To use PmWiki itself to set passwords on individual wiki pages and WikiGroups, see PmWiki.Passwords. << Per-group customizations | PmWiki.DocumentationIndex | Uploads administration? >> |