Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Deleted: | ||||||||
< < | On this page:
| |||||||
Changed: | ||||||||
< < |
TWiki Access Control | |||||||
> > | TWiki Access Control | |||||||
Restricting read and write access to topics and webs, by Users and groups | ||||||||
Line: 10 to 8 | ||||||||
![]() ![]() | ||||||||
Added: | ||||||||
> > | On this page:
| |||||||
An Important Control Consideration | ||||||||
Line: 17 to 17 | ||||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Line: 43 to 43 | ||||||||
A user can create an account in TWikiRegistration. The following actions are performed:
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Changed: | ||||||||
< < | The default visitor name is TWikiGuest. This is the non-authenticated user. | |||||||
> > | The default visitor name is TWikiGuest. This is the non-authenticated user. | |||||||
Managing GroupsThe following describes the standard TWiki support for groups. Your local TWiki may have an alternate group mapping manager installed. Check with your TWiki administrator if you are in doubt. | ||||||||
Changed: | ||||||||
< < | Groups are defined by group topics located in the Public web. To create a new group, visit TWikiGroups and enter the name of the new group ending in Group into the "new group" form field. This will create a new group topic with two important settings: | |||||||
> > | Groups are defined by group topics located in the Public web. To create a new group, visit TWikiGroups and enter the name of the new group ending in Group into the "new group" form field. This will create a new group topic with two important settings: | |||||||
| ||||||||
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: | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
![]() | ||||||||
Line: 70 to 70 | ||||||||
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. | ||||||||
Changed: | ||||||||
< < | You can create new administrators simply by adding them to the TWikiAdminGroup topic. For example,
| |||||||
> > | You can create new administrators simply by adding them to the TWikiAdminGroup topic. For example,
| |||||||
A member of the Super Admin Group has unrestricted access throughout the TWiki, so only trusted staff should be added to this group.
Restricting AccessYou can define who is allowed to read or write to a web or a topic. Note that some plugins may not respect access permissions. | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Line: 99 to 99 | ||||||||
| ||||||||
Changed: | ||||||||
< < | 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. | |||||||
> > | 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. | ||||||||
Added: | ||||||||
> > | Note: If you restrict access to the Public, make sure to add the TWikiRegistrationAgent so that users can register. Example:
| |||||||
Note: For Web level access rights Setting any of these settings to an empty value has the same effect as not setting them at all. Please note that the documentation of TWiki 4.0 and earlier versions of TWiki 4.1 did not reflect the actual implementation, e.g. an empty ALLOWWEBVIEW does not prevent anyone from viewing the web, and an an empty DENYWEBVIEW does not allow all to view the web.
Controlling access to a Topic | ||||||||
Line: 152 to 155 | ||||||||
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: 189 to 192 | ||||||||
![]() | ||||||||
Added: | ||||||||
> > | 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:
<FilesMatch ".*"> require valid-user </FilesMatch>If needed, you can further restrict access to selected webs with ALLOWWEBVIEW and other access control settings. Note: With this configuration, someone with access to the site needs to register new users. | |||||||
Authenticate all Webs and Restrict Selected WebsUse the following setup to authenticate users for topic viewing in all webs and to restrict access to selected webs. Requires TWikiUserAuthentication to be enabled. | ||||||||
Added: | ||||||||
> > |
| |||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Authenticate and Restrict Selected Webs Only | ||||||||
Line: 205 to 224 | ||||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Hide Control Settings | ||||||||
Line: 215 to 234 | ||||||||
| ||||||||
Changed: | ||||||||
< < | * Set DENYTOPICCHANGE = Public.SomeGroup | |||||||
> > | * Set DENYTOPICCHANGE = Public.SomeGroup | |||||||
-->
|