PmWiki.PasswordsAdmin 5.0 KB

12345678910111213141516171819202122
  1. version=pmwiki-1.0.5
  2. newline=²
  3. text=PmWiki has built-in support for password-protecting various areas of the wiki site. Passwords can be applied to individual pages, to {{WikiGroup}}s, 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 @@admin@@ access for the entire wiki site that allows an administrator to override the passwords set for any individual page or group. All passwords are stored in an encrypted format so that other users on the system cannot simply browse the contents of files to determine the passwords.²²By default, PmWiki is configured with empty @@read@@ and @@edit@@ passwords for the whole site (allowing anyone to view or edit pages), the @@attr@@ password is locked for the Main and PmWiki groups, and the @@admin@@ password is locked entirely. Global passwords for the wiki site are controlled by the [=$DefaultPasswords=] array in ''config.php''. To set an admin password to "@@mysecret@@" for a site, you can add the following line to ''config.php'':²² $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 @@?action=crypt@@ or @@&action=crypt@@ to the end of any PmWiki URL (or jump to ThisWiki:?action=crypt) and you'll be presented with a form to give you the encrypted form of the password. For example, when the ''crypt'' action is given the password "@@mysecret@@", PmWiki gives back a string like ²² [=$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 that the encrypted password has to be enclosed in single-quotes. Here, the password is still "@@mysecret@@", but somebody looking at ''config.php'' won't be able to see that just from looking at the encrypted form. ''Crypt'' may give you different encryptions for the same password--this is normal (and makes it harder for someone else to determine the original password).²²Similarly, you can set @@[=$DefaultPasswords['read']=]@@, @@[=$DefaultPasswords['edit']=]@@, and @@[=$DefaultPasswords['attr']=]@@ to control default @@read@@, @@edit@@, and @@attr@@ passwords for the entire site. The default passwords are used only for pages and groups which do not have passwords set. Also, any of these values may be arrays of encrypted passwords.²²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 {{WikiGroup}}s, see PmWiki.{{Passwords}}.²²%trail%<<|PmWiki.DocumentationIndex|>>²
  4. time=1104152938
  5. host=68.167.115.34
  6. agent=Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.1) Gecko/20040707
  7. rev=26
  8. post= Save
  9. author=scott
  10. name=PmWiki.PasswordsAdmin
  11. diff:1100969973:1076998717:=26d25²< [[http://diskrecovery.raidrescue.com/ _]] [[http://disksos.raidrescue.com/ _]] [[http://diskrescue.raidrescue.com/ _]] [[http://ibmrecovery.raidrescue.com/ _]] [[http://ibmsos.raidrescue.com/ _]] [[http://ibmrescue.raidrescue.com/ _]] [[http://wdrecovery.raidrescue.com/ _]]²
  12. author:1100969973=data
  13. host:1100969973=210.90.223.227
  14. diff:1100979631:1100969973:=25a26²> [[http://diskrecovery.raidrescue.com/ _]] [[http://disksos.raidrescue.com/ _]] [[http://diskrescue.raidrescue.com/ _]] [[http://ibmrecovery.raidrescue.com/ _]] [[http://ibmsos.raidrescue.com/ _]] [[http://ibmrescue.raidrescue.com/ _]] [[http://wdrecovery.raidrescue.com/ _]]²
  15. author:1100979631=scott
  16. host:1100979631=68.193.191.197
  17. diff:1103972955:1100979631:=2d1²< [[http://www.blogcn.com/user23/recovery/index.html _]] [[http://www.blogcn.com/user23/rescue/index.html _]] [[http://freehost18.websamba.com/rescue/ _]] [[http://www.freewebs.com/datarestore/ _]]²
  18. author:1103972955=
  19. host:1103972955=210.90.223.227
  20. diff:1104152938:1103972955:=1a2²> [[http://www.blogcn.com/user23/recovery/index.html _]] [[http://www.blogcn.com/user23/rescue/index.html _]] [[http://freehost18.websamba.com/rescue/ _]] [[http://www.freewebs.com/datarestore/ _]]²
  21. author:1104152938=scott
  22. host:1104152938=68.167.115.34