From KKnd'sPmWiki
Pm Wiki Zh Cn Utf 8: Passwords
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 PmWikiZhCnUtf8.Security
? for more discussion of this.
PmWiki supports three 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)
-
upload
passwords control access to the file upload capabilities (if uploads are enabled)
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.
To set a password on an individual wiki page, add
?action=attr
to the page's URL (address) to access its attributes. You may be prompted for a username and password; the username field isn't used by
PmWiki. You can enter either an
admin
password or you can enter the
attr
password in effect for that page. From the attributes page you can then set or clear the
read
,
edit
, or
attr
passwords on the page. In the attributes form you enter the passwords as cleartext;
PmWiki will encrypt them for you automatically.
To set passwords for an entire
WikiGroup, edit the attributes of the
GroupAttributes page within the group. For example, to change the attributes for the
PmWiki group you would modify the attributes of
PmWikiZhCnUtf8.GroupAttributes.
In
PmWiki, page passwords override group passwords, group passwords override the default passwords, and the
admin
password overrides all passwords. This gives a great deal of flexibility in controlling access to wiki pages in
PmWiki. At present there isn't any way 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.
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. For more information on setting the
admin
or global site passwords, see
PmWiki.PasswordsAdmin.
PmWiki 内嵌支持各种邻域的wiki站点的密码保护功能。可以对单个页面,{{
WikiGroup Wiki组}}内页面,或者整个站点施加密码保护功能。注意:这里叙述的密码保护机制只是整个系统和wiki安全
的一小部分,更详细的讨论可以参见
PmWiki{{Security 安全页}}.
PmWiki 支持三种不同等级的wiki页面访问权:
-
read
密码允许查看wiki 页面的内容
-
edit
密码控制编辑和修改wiki页面
-
attr
密码用来控制谁有权为页面设置密码(和内部的其他属性)
-
upload
密码控制上传文件的权力(如果上传功能被打开)
最后,有一个
admin
(管理员)权限来访问整个wiki站点,并且允许管理员来重写为单个页面或wiki组设置的密码。
为单个wiki页面设置密码:在页面的URL地址后加下@@?action=attr@来访问它的属性。你可能被提
示输入用户名和密码。用户名那一项并没有被
PmWiki使用。你或者输入一个
admin
密码或者输入一个
attr
密码来进入那个页面的属性页。在属性页里,你就可以
设置或者清除当前页面的
read
,
edit
, 和
attr
密码了。
你在属性表格里输入的密码是明文形式,
PmWiki会自动为你加密这些密码。
为整个
WikiGroup设置密码:编辑某一组的
GroupAttributes页面即可。举个例子,如果你希望改变
PmWiki组的属性,你需要进
PmWikiZhCnUtf8.GroupAttributes这个组属性页来修改。
在
PmWiki里, page密码覆盖了group组密码,组密码则覆盖了默认的密码,同时,
admin
密码覆盖了所有的密码.这个机制给了控制访问wiki页码很大的弹性。现在的版本中,还没有方法在一个密码保护的组中设定一个无密码的页面,或者在一个整个站点密码保护的站点里设定一个无密码保护的组。
默认的情况下,
PmWiki为整个站点设定了空的
read
和
edit
密码,即是允许任何人来查看和编辑页面。Main和
PmWiki组的
attr
密码是锁定的,所有
admin
密码全都是锁定的。 如果你希望设定一个
admin
密码或者全站点密码,参见
PmWikiZhCnUtf8.PasswordsAdmin.
Trans. By LongWoSion
<<
WikiGroups |
PmWikiZhCnUtf8.DocumentationIndex |
WikiTrails >>
Retrieved from “http://xemacs.cosoft.org.cn/pmwiki/pmwiki.php/PmWikiZhCnUtf8/Passwords”
Page last modified on 13 九月, 2003, 时间 19:53
©
copyleft by [email protected]
or
[email protected]