XPressME Integration Kit

Trac

Version 1 から Version 2 における更新: TracPermissions

差分発生行の前後
Ignore:
Timestamp:
Nov 29, 2010, 3:25:28 PM (13 years 前)
Author:
trac (IP: 127.0.0.1)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TracPermissions

    v1 v2  
    1 = アクセス制御とパーミッション = #TracPermissions 
     1= Trac Permissions = 
    22[[TracGuideToc]] 
    33 
    4 Trac はシンプルなアクセス制御システムを使用しています。大文字小文字は区別されます。 
     4Trac uses a simple, case sensitive, permission system to control what users can and can't access. 
    55 
    6 パーミッションの付与は [wiki:TracAdmin trac-admin] ツールまたは ''管理'' (英語版では ''Admin'') Web インタフェースの ''一般設定 / パーミッション'' (英語版では ''General / Permissions'') パネルを使用して操作します。 
     6Permission privileges are managed using the [TracAdmin trac-admin] tool or (new in version 0.11) the ''General / Permissions'' panel in the ''Admin'' tab of the web interface. 
    77 
    8 このページで説明するデフォルトのパーミッションポリシーに加え、他のパーミッションポリシーを使用することができます。プラグインを有効化し、 TracIni の `[trac] permission_policies` リストのエントリに追加してください。詳細は TracFineGrainedPermissions を参照してください。 
     8In addition to the default permission policy described in this page, it is possible to activate additional permission policies by enabling plugins and listing them in the `[trac] permission_policies` configuration entry in the TracIni. See TracFineGrainedPermissions for more details. 
    99 
    10 認証していないユーザは "anonymous" としてシステムにアクセスします。 "anonymous" ユーザには anonymous/guest ユーザの権限を割り当てます。 権限が与えられていない Trac のモジュールはナビゲーションバーに表示されません。 
    11 これらの権限に加えて、登録したユーザ (HTTP 認証を行ったユーザ) には個別に権限を付与することができます。ログインしたすべてのユーザは "authenticated" という仮想グループに所属します ("authenticated" は "anonymous" からパーミッションを継承します)。 
     10Non-authenticated users accessing the system are assigned the name "anonymous". Assign permissions to the "anonymous" user to set privileges for anonymous/guest users. The parts of Trac that a user does not have the privileges for will not be displayed in the navigation. 
     11In addition to these privileges, users can be granted additional individual rights in effect when authenticated and logged into the system. All logged in users belong to the virtual group "authenticated", which inherits permissions from "anonymous". 
    1212 
    13 == 付与できる権限 == #AvailablePrivileges 
     13== Graphical Admin Tab == 
     14''This feature is new in version 0.11.'' 
    1415 
    15 あるユーザで全ての権限を有効にしたい場合、 `TRAC_ADMIN` 権限を使用してください。 `TRAC_ADMIN` 権限を持っているユーザは *NIX システムでの `root` と同じように、いかなる操作も行うことができます。 
     16To access this tab, a user must have `TRAC_ADMIN privileges`. This can be performed as follows (more on the trac-admin script below): 
     17{{{ 
     18  $ trac-admin /path/to/projenv permission add bob TRAC_ADMIN 
     19}}} 
    1620 
    17 または Trac の機能ごとに異なる種類の権限を、ユーザごとに個別に付与することができます。('''パーミッション名は大文字/小文字を区別します'''): 
    18  
    19 === リポジトリブラウザ === #RepositoryBrowser 
    20  
    21 || `BROWSER_VIEW` || [wiki:TracBrowser リポジトリブラウザ] でディレクトリの一覧表示を行う || 
    22 || `LOG_VIEW` || [wiki:TracBrowser リポジトリブラウザ] でファイルとディレクトリのリビジョンログを表示する || 
    23 || `FILE_VIEW` || [wiki:TracBrowser リポジトリブラウザ] でファイルを表示する || 
    24 || `CHANGESET_VIEW` || [wiki:TracChangeset リポジトリへのチェックイン] を表示する || 
    25  
    26 === チケットシステム === #TicketSystem 
    27  
    28 || `TICKET_VIEW` || 登録済みの [wiki:TracTickets チケット] を表示し、 [wiki:TracQuery チケットクエリ] を実行する || 
    29 || `TICKET_CREATE` || 新規 [wiki:TracTickets チケット] を登録する || 
    30 || `TICKET_APPEND` || [wiki:TracTickets チケット] にコメントや添付ファイルを追加する || 
    31 || `TICKET_CHGPROP` || チケットの概要フィールドを除いた [wiki:TracTickets チケット] 属性 (優先度 (Priority), 担当者 (Owner), キーワード (Keywords)など) を変更する。ログインしていたり、ユーザ設定 (Pref) を設定している場合、関係者 (Cc) に自分を追加/削除できる || 
    32 || `TICKET_MODIFY` || `TICKET_APPEND` と `TICKET_CHGPROP` の両方に加え、 [wiki:TracTickets チケット] の解決を可能にする || 
    33 || `TICKET_EDIT_CC` || 関係者 (英語版では Cc) のリストを直接編集できる || 
    34 || `TICKET_EDIT_DESCRIPTION` || 説明 (英語版では description) フィールドを編集できる || 
    35 || `TICKET_ADMIN` || 全ての `TICKET_*` 権限に加え、チケットへの添付ファイルの削除やチケットの概要フィールドの変更を可能にする || 
    36  
    37 注意: "チケットを見る" (英語版では "view tickets") ボタンは、 `REPORT_VIEW` 権限で表示されます。 
    38  
    39 === ロードマップ === #Roadmap 
    40  
    41 || `MILESTONE_VIEW` || マイルストーンを表示する || 
    42 || `MILESTONE_CREATE` || 新しいマイルストーンを作成する || 
    43 || `MILESTONE_MODIFY` || 既に存在するマイルストーンを編集する || 
    44 || `MILESTONE_DELETE` || マイルストーンを削除する || 
    45 || `MILESTONE_ADMIN` || 全ての `MILESTONE_*` 権限を持つ || 
    46 || `ROADMAP_VIEW` || [wiki:TracRoadmap ロードマップ] を表示する, (すでに) MILESTONE_VIEW と同じではない [http://trac.edgewall.org/ticket/4292 #4292] 参照 || 
    47 || `ROADMAP_ADMIN` || [http://trac.edgewall.org/ticket/3022 #3022] で削除され、 MILESTONE_ADMIN に置き換えられた || 
    48  
    49 === レポート === #Reports 
    50  
    51 || `REPORT_VIEW` || [wiki:TracReports レポート] を表示する。つまり "チケットを見る" (英語版では "view tickets") リンク || 
    52 || `REPORT_SQL_VIEW` || [wiki:TracReports レポート] の SQL を表示する || 
    53 || `REPORT_CREATE` || 新しい [wiki:TracReports レポート] を作成する || 
    54 || `REPORT_MODIFY` || 既に存在する [wiki:TracReports レポート] を編集する || 
    55 || `REPORT_DELETE` || [wiki:TracReports レポート] を削除する || 
    56 || `REPORT_ADMIN` || 全ての `REPORT_*` 権限を持つ || 
    57  
    58 === Wiki システム === #WikiSystem 
    59  
    60 || `WIKI_VIEW` || 既に存在する [wiki:TracWiki Wiki] ページを表示する || 
    61 || `WIKI_CREATE` || 新しい [wiki:TracWiki Wiki] ページを作成する || 
    62 || `WIKI_MODIFY` || [wiki:TracWiki Wiki] ページを編集する || 
    63 || `WIKI_DELETE` || [wiki:TracWiki Wiki] ページと添付ファイルを削除する || 
    64 || `WIKI_ADMIN` || 全ての `WIKI_*` 権限に加え、 ''読み込み専用'' ページを管理する || 
    65  
    66 === パーミッション === #Permissions 
    67  
    68 || `PERMISSION_GRANT` || パーミッションを追加および付与する || 
    69 || `PERMISSION_REVOKE` || パーミッションを削除およびはく奪する || 
    70 || `PERMISSION_ADMIN` || 全ての `PERMISSION_*` 権限を持つ || 
     21Then, the user `bob` will be able to see the Admin tab, and can then access the permissions menu. This menu will allow you to perform all the following actions, but from the browser without requiring root access to the server (just the correct permissions for your user account). 
    7122 
    7223 
    73 === その他 === #Others 
     24An easy way to quickly secure a new Trac install is to run the above command on the anonymous user, install the [http://trac-hacks.org/wiki/AccountManagerPlugin AccountManagerPlugin], create a new admin account graphically and then remove the TRAC_ADMIN permission from the anonymous user. 
    7425 
    75 || `TIMELINE_VIEW` || [wiki:TracTimeline タイムライン] を表示する || 
    76 || `SEARCH_VIEW` || [wiki:TracSearch 検索] の表示と実行 || 
    77 || `CONFIG_VIEW` || ''Trac について'' (英語版では ''About Trac'') のページに追加して、現在のコンフィグやインストールされているプラグインの表示を可能にする || 
    78 || `EMAIL_VIEW` || [wiki:TracIni `show_email_addresses` が `false`] でもメールアドレスを表示する || 
     26== Available Privileges == 
    7927 
    80 == 権限の付与 == #GrantingPrivileges 
     28To enable all privileges for a user, use the `TRAC_ADMIN` permission. Having `TRAC_ADMIN` is like being `root` on a *NIX system: it will allow you to perform any operation. 
    8129 
    82 [wiki:TracAdmin trac-admin] を使用してユーザに権限を与えて下さい。現在設定されている権限は以下のコマンドで一覧できます: 
     30Otherwise, individual privileges can be assigned to users for the various different functional areas of Trac ('''note that the privilege names are case-sensitive'''): 
     31 
     32=== Repository Browser === 
     33 
     34|| `BROWSER_VIEW` || View directory listings in the [wiki:TracBrowser repository browser] || 
     35|| `LOG_VIEW` || View revision logs of files and directories in the [wiki:TracBrowser repository browser] || 
     36|| `FILE_VIEW` || View files in the [wiki:TracBrowser repository browser] || 
     37|| `CHANGESET_VIEW` || View [wiki:TracChangeset repository check-ins] || 
     38 
     39=== Ticket System === 
     40 
     41|| `TICKET_VIEW` || View existing [wiki:TracTickets tickets] and perform [wiki:TracQuery ticket queries] || 
     42|| `TICKET_CREATE` || Create new [wiki:TracTickets tickets] || 
     43|| `TICKET_APPEND` || Add comments or attachments to [wiki:TracTickets tickets] || 
     44|| `TICKET_CHGPROP` || Modify [wiki:TracTickets ticket] properties (priority, assignment, keywords, etc.) with the following exceptions: edit description field, add/remove other users from cc field when logged in, and set email to pref || 
     45|| `TICKET_MODIFY` || Includes both `TICKET_APPEND` and `TICKET_CHGPROP`, and in addition allows resolving [wiki:TracTickets tickets]. Tickets can be assigned to users through a [TracTickets#Assign-toasDrop-DownList drop-down list] when the list of possible owners has been restricted. || 
     46|| `TICKET_EDIT_CC` || Full modify cc field || 
     47|| `TICKET_EDIT_DESCRIPTION` || Modify description field || 
     48|| `TICKET_EDIT_COMMENT` || Modify comments || 
     49|| `TICKET_ADMIN` || All `TICKET_*` permissions, plus the deletion of ticket attachments and modification of the reporter and description fields. It also allows managing ticket properties in the WebAdmin panel. || 
     50 
     51Attention: the "view tickets" button appears with the `REPORT_VIEW` permission. 
     52 
     53=== Roadmap === 
     54 
     55|| `MILESTONE_VIEW` || View milestones and assign tickets to milestones. || 
     56|| `MILESTONE_CREATE` || Create a new milestone || 
     57|| `MILESTONE_MODIFY` || Modify existing milestones || 
     58|| `MILESTONE_DELETE` || Delete milestones || 
     59|| `MILESTONE_ADMIN` || All `MILESTONE_*` permissions || 
     60|| `ROADMAP_VIEW` || View the [wiki:TracRoadmap roadmap] page, is not (yet) the same as MILESTONE_VIEW, see [trac:#4292 #4292] || 
     61|| `ROADMAP_ADMIN` || to be removed with [trac:#3022 #3022], replaced by MILESTONE_ADMIN || 
     62 
     63=== Reports === 
     64 
     65|| `REPORT_VIEW` || View [wiki:TracReports reports], i.e. the "view tickets" link. || 
     66|| `REPORT_SQL_VIEW` || View the underlying SQL query of a [wiki:TracReports report] || 
     67|| `REPORT_CREATE` || Create new [wiki:TracReports reports] || 
     68|| `REPORT_MODIFY` || Modify existing [wiki:TracReports reports] || 
     69|| `REPORT_DELETE` || Delete [wiki:TracReports reports] || 
     70|| `REPORT_ADMIN` || All `REPORT_*` permissions || 
     71 
     72=== Wiki System === 
     73 
     74|| `WIKI_VIEW` || View existing [wiki:TracWiki wiki] pages || 
     75|| `WIKI_CREATE` || Create new [wiki:TracWiki wiki] pages || 
     76|| `WIKI_MODIFY` || Change [wiki:TracWiki wiki] pages || 
     77|| `WIKI_RENAME` || Rename [wiki:TracWiki wiki] pages || 
     78|| `WIKI_DELETE` || Delete [wiki:TracWiki wiki] pages and attachments || 
     79|| `WIKI_ADMIN` || All `WIKI_*` permissions, plus the management of ''readonly'' pages. || 
     80 
     81=== Permissions === 
     82 
     83|| `PERMISSION_GRANT` || add/grant a permission || 
     84|| `PERMISSION_REVOKE` || remove/revoke a permission || 
     85|| `PERMISSION_ADMIN` || All `PERMISSION_*` permissions || 
     86 
     87 
     88=== Others === 
     89 
     90|| `TIMELINE_VIEW` || View the [wiki:TracTimeline timeline] page || 
     91|| `SEARCH_VIEW` || View and execute [wiki:TracSearch search] queries || 
     92|| `CONFIG_VIEW` || Enables additional pages on ''About Trac'' that show the current configuration or the list of installed plugins || 
     93|| `EMAIL_VIEW` || Shows email addresses even if [trac:wiki:0.11/TracIni trac show_email_addresses configuration option is false] || 
     94 
     95== Granting Privileges == 
     96 
     97You grant privileges to users using [wiki:TracAdmin trac-admin]. The current set of privileges can be listed with the following command: 
    8398{{{ 
    8499  $ trac-admin /path/to/projenv permission list 
    85100}}} 
    86101 
    87 次のコマンドはユーザ ''bob'' にレポートの削除権限を与えます: 
     102This command will allow the user ''bob'' to delete reports: 
    88103{{{ 
    89104  $ trac-admin /path/to/projenv permission add bob REPORT_DELETE 
    90105}}} 
    91106 
    92 `permission add` コマンドでは複数の権限を扱うことができます: 
     107The `permission add` command also accepts multiple privilege names: 
    93108{{{ 
    94109  $ trac-admin /path/to/projenv permission add bob REPORT_DELETE WIKI_CREATE 
    95110}}} 
    96111 
    97 次のコマンドはユーザ ''bob'' に管理者権限を与えます: 
     112Or add all privileges: 
    98113{{{ 
    99114  $ trac-admin /path/to/projenv permission add bob TRAC_ADMIN 
    100115}}} 
    101116 
    102 == パーミッショングループ == #PermissionGroups 
     117== Permission Groups == 
    103118 
    104 二つのビルトイングループ "認証済み (authenticated)" と "匿名 (anonymous)" があります。[[BR]] 
    105 ログインしていないユーザは自動的に "匿名 (anonymous)" グループに属します。[[BR]] 
    106 ログインしたユーザは "認証済み (authenticated)" グループに属します。[[BR]] 
    107 "認証済み (authenticated)" グループの権限は "匿名 (anonymous)" グループの権限を継承します。[[BR]] 
    108 例えば、"匿名 (anonymous)" グループが WIKI_MODIFY 権限を持っていれば、"認証 (authenticated)" グループに WIKI_MODIFY 権限を与える必要はありません。 
     119There are two built-in groups, "authenticated" and "anonymous". 
     120Any user who has not logged in is automatically in the "anonymous" group. 
     121Any user who has logged in is also in the "authenticated" group. 
     122The "authenticated" group inherits permissions from the "anonymous" group. 
     123For example, if the "anonymous" group has permission WIKI_MODIFY,  
     124it is not necessary to add the WIKI_MODIFY permission to the "authenticated" group as well. 
    109125 
    110 カスタムグループは二つのビルトイングループから権限を継承します。 
     126Custom groups may be defined that inherit permissions from the two built-in groups. 
    111127 
    112 パーミッションをグループ化してロール (''developer''、''admin''、etc.) を構成することができます 
     128Permissions can be grouped together to form roles such as ''developer'', ''admin'', etc. 
    113129{{{ 
    114130  $ trac-admin /path/to/projenv permission add developer WIKI_ADMIN 
     
    119135}}} 
    120136 
    121 グループのメンバーは {{{permission list}}} を引数なしで起動すると見ることができます; 出力される結果にはグループのメンバが含まれています。 '''グループ名には小文字を使ってください。大文字は権限名のために予約されています。''' 
     137Group membership can be checked by doing a {{{permission list}}} with no further arguments; the resulting output will include group memberships. '''Use at least one lowercase character in group names, as all-uppercase names are reserved for permissions'''. 
    122138 
    123 == グループと権限を追加する == #AddingaNewGroupandPermissions 
    124 あなたが望むようにパーミッショングループを作り、ユーザを割り当てて、そのグループに権限を付与することができます。 
     139== Adding a New Group and Permissions == 
     140Permission groups can be created by assigning a user to a group you wish to create, then assign permissions to that group. 
    125141 
    126 以下は、新しいグループ ''beta_testers'' に ''bob'' というユーザを割り当てて、 ''beta_testers'' に WIKI_ADMIN の権限を付与する例です ( その結果 ''bob'' は WIKI_ADMIN という権限を引き継ぐでしょう ) 。 
     142The following will add ''bob'' to the new group called ''beta_testers'' and then will assign WIKI_ADMIN permissions to that group. (Thus, ''bob'' will inherit the WIKI_ADMIN permission) 
    127143{{{  
    128144   $ trac-admin /path/to/projenv permission add bob beta_testers 
     
    131147}}} 
    132148 
    133 == パーミッションを削除する == #RemovingPermissions 
     149== Removing Permissions == 
    134150 
    135 パーミッションは 'remove' コマンドを使用して削除します。例: 
     151Permissions can be removed using the 'remove' command. For example: 
    136152 
    137 このコマンドは、ユーザ ''bob'' から レポートを削除する権限を削除します: 
     153This command will prevent the user ''bob'' from deleting reports: 
    138154{{{ 
    139155  $ trac-admin /path/to/projenv permission remove bob REPORT_DELETE 
    140156}}} 
    141157 
    142 `permission add` と同様に、このコマンドは複数の権限名を扱うことができます。 
     158Just like `permission add`, this command accepts multiple privilege names. 
    143159 
    144 特定のユーザからすべての権限を削除することもできます: 
     160You can also remove all privileges for a specific user: 
    145161{{{ 
    146162  $ trac-admin /path/to/projenv permission remove bob '*' 
    147163}}} 
    148164 
    149 または、すべてのユーザからある権限を削除することもできます: 
     165Or one privilege for all users: 
    150166{{{ 
    151167  $ trac-admin /path/to/projenv permission remove '*' REPORT_ADMIN 
    152168}}} 
    153169 
    154 == デフォルトのパーミッション == #DefaultPermissions 
     170== Default Permissions == 
    155171 
    156 `匿名 (anonymous)` のユーザは、デフォルトで Trac 内の全てに対して ''参照 (view)'' 権限を持ちますが、作成 (create) および変更 (modify) の権限はありません。 
    157 加えて、 `認証済み (authenticated)` のユーザは ''チケットと Wiki ページに関する作成 (create) 及び変更 (modify)'' の権限を持ちます。 
     172By default on a new Trac installation, the `anonymous` user will have ''view'' access to everything in Trac, but will not be able to create or modify anything. 
     173On the other hand, the `authenticated` users will have the permissions to ''create and modify tickets and wiki pages''. 
    158174 
    159  '''匿名 (anonymous)''':: 
     175'''anonymous''' 
     176{{{ 
    160177 BROWSER_VIEW  
    161178 CHANGESET_VIEW  
     
    169186 TICKET_VIEW  
    170187 TIMELINE_VIEW 
    171  WIKI_VIEW  
     188 WIKI_VIEW 
     189}}} 
    172190 
    173  '''認証済み (authenticated)''':: 
     191'''authenticated''' 
     192{{{ 
    174193 TICKET_CREATE  
    175194 TICKET_MODIFY  
    176195 WIKI_CREATE  
    177196 WIKI_MODIFY   
    178  
     197}}} 
    179198---- 
    180199See also: TracAdmin, TracGuide and TracFineGrainedPermissions