Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
TWiki Access ControlRestricting read and write access to topics and webs, by Users and groups | ||||||||
Line: 44 to 44 | ||||||||
A user can create an account in TWikiRegistration. The following actions are performed:
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Line: 59 to 59 | ||||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Changed: | ||||||||
< < | The ALLOWTOPICCHANGE setting defines who is allowed to change the group topic; it is a comma delimited list of users and groups. You typically want to restrict that to the members of the group itself, so it should contain the name of the topic. This prevents users not in the group from editing the topic to give themselves or others access. For example, for the KasabianGroup topic write:
| |||||||
> > | The ALLOWTOPICCHANGE setting defines who is allowed to change the group topic; it is a comma delimited list of users and groups. You typically want to restrict that to the members of the group itself, so it should contain the name of the topic. This prevents users not in the group from editing the topic to give themselves or others access. For example, for the MarketingGroup topic write:
| |||||||
Changed: | ||||||||
< < | ![]() | |||||||
> > | ![]() | |||||||
The Super Admin Group | ||||||||
Line: 72 to 72 | ||||||||
A number of TWiki functions (for example, renaming webs) are only available to administrators. Administrators are simply users who belong to the SuperAdminGroup. This is a standard user group, the name of which is defined by {SuperAdminGroup} setting in configure. The default name of this group is the TWikiAdminGroup . The system administrator may have chosen a different name for this group if your local TWiki uses an alternate group mapping manager but for simplicity we will use the default name TWikiAdminGroup in the rest of this topic.
You can create new administrators simply by adding them to the TWikiAdminGroup topic. For example, | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
A member of the Super Admin Group has unrestricted access throughout the TWiki, so only trusted staff should be added to this group. | ||||||||
Line: 102 to 102 | ||||||||
| ||||||||
Added: | ||||||||
> > | For example, set this to restrict a web to be viewable only by the MarketingGroup:
| |||||||
If your site allows hierarchical webs, then access to sub-webs is determined from the access controls of the parent web, plus the access controls in the sub-web. So, if the parent web has ALLOWWEBVIEW set, this will also apply to the subweb. Also note that you will need to ensure that the parent web's FINALPREFERENCES does not include the access control settings listed above. Otherwise you will not be able override the parent web's access control settings in sub-webs.
Creation and renaming of sub-webs is controlled by the WEBCHANGE setting on the parent web (or ROOTCHANGE for root webs). Renaming is additionally restricted by the setting of WEBRENAME in the web itself. | ||||||||
Line: 122 to 125 | ||||||||
| ||||||||
Added: | ||||||||
> > | For example, set this to restrict a topic to be viewable only by the MarketingExecGroup:
| |||||||
Remember when opening up access to specific topics within a restricted web that other topics in the web - for example, the WebLeftBar - may also be accessed when viewing the topics. The message you get when you are denied access should tell you what topic you were not permitted to access. Be careful with empty values for any of these. | ||||||||
Line: 168 to 174 | ||||||||
Controlling who can manage top-level websTop level webs are a special case, because they don't have a parent web with a WebPreferences. So there has to be a special control just for the root level. | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
ROOTCHANGE access to rename an existing top-level web. You just need WEBCHANGE in the web itself. | ||||||||
Line: 207 to 213 | ||||||||
Access Control quick recipes | ||||||||
Deleted: | ||||||||
< < | Obfuscating WebsAnother way of hiding webs is to keep them hidden by not publishing the URL and by preventing theall webs search option from accessing obfuscated webs. Do so by enabling the NOSEARCHALL variable in WebPreferences:
![]() | |||||||
Restrict Access to Whole TWiki SiteFor a firewalled TWiki, e.g. an intranet wiki or extranet wiki, you want to allow only invited people to access your TWiki. In this case, enable user authentication with ApacheLogin and lock down access to the wholetwiki/bin and twiki/pub directories to all but valid users. In the Apache .htaccess file or the appropriate .conf file, replace the <FilesMatch "(attach|edit|... section with this: | ||||||||
Line: 262 to 259 | ||||||||
-->
| ||||||||
Added: | ||||||||
> > |
Obfuscating WebsAnother way of hiding webs is to keep them hidden by not publishing the URL and by preventing theall webs search option from accessing obfuscated webs. Do so by enabling the NOSEARCHALL variable in WebPreferences:
![]() Read-only Skin ModeIt is possible to turn the PatternSkin and TopMenuSkin into read-only mode by removing the edit and attach controls (links and buttons). This is mainly useful if you have TWiki application pages or dashboards where you do not want regular users to change content. The read-only skin mode is not a replacement for access control; you can use it in addition to access control. Details at PatternSkinCustomization#ReadOnlySkinMode. | |||||||
Related Topics: AdminDocumentationCategory, TWikiUserAuthentication, TWiki:TWiki.TWikiAccessControlSupplement![]() |