{"id":1584,"date":"2013-05-03T07:16:59","date_gmt":"2013-05-03T12:16:59","guid":{"rendered":"http:\/\/bitpost.com\/news\/?p=1584"},"modified":"2013-05-03T07:16:59","modified_gmt":"2013-05-03T12:16:59","slug":"configure-a-trac-1-0-1-public-wiki-to-have-a-private-wiki-section","status":"publish","type":"post","link":"https:\/\/bitpost.com\/news\/2013\/configure-a-trac-1-0-1-public-wiki-to-have-a-private-wiki-section\/","title":{"rendered":"Configure a Trac 1.0.1 public wiki to have a private wiki section"},"content":{"rendered":"<p>I&#8217;m setting up a private wiki area in my trac wiki.  There&#8217;s lots of old info regarding trac permissions, easy to get lost.  It seems the most current clean way is to use the AuthzPolicy plugin\/module, which is available in the base install.  There are some steps to go through to get set up, but it&#8217;s pretty straightforward.<\/p>\n<p>Go to the admin plugins page, click Trac arrow to open it, find AuthzPolicy, click arrow to open it for instructions.  More instructions are <a href=\"http:\/\/trac.edgewall.org\/wiki\/TracFineGrainedPermissions\" title=\"Fine grained permissions\" rel=\"nofollow\">here<\/a> but may not be as up-to-date.  When you&#8217;re ready, click the enable checkbox and save changes, then configure it.  Here&#8217;s what I did:<\/p>\n<pre><code>easy_install configobj\r\nemacs conf\/trac.ini\r\n  [trac]\r\n  permission_policies = AuthzPolicy, DefaultPermissionPolicy, LegacyAttachmentPolicy\r\n  [authz_policy]\r\n  authz_file = conf\/authzpolicy.conf\r\nemacs conf\/authzpolicy.conf\r\n  [groups]\r\n  devs = joe, jane\r\n  [wiki:DevPage@*]\r\n  @devs = WIKI_VIEW, WIKI_CREATE, WIKI_MODIFY\r\n  * =\r\n\/etc\/init.d\/apache2 restart<\/code><\/pre>\n<p>The base Trac is pretty useless for managing users, so let&#8217;s get the plugin that fixes that (yes trac is still pretty much a hack \ud83d\ude42 )&#8230;<\/p>\n<pre><code>easy_install TracAccountManager<\/code><\/pre>\n<p>Now let&#8217;s configure it.  Same as before, pop it open in the trac admin page.  More instructions are <a href=\"http:\/\/trac-hacks.org\/wiki\/AccountManagerPlugin\" title=\"Account Manager\" rel=\"nofollow\">here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m setting up a private wiki area in my trac wiki. There&#8217;s lots of old info regarding trac permissions, easy to get lost. It seems the most current clean way is to use the AuthzPolicy plugin\/module, which is available in the base install. There are some steps to go through to get set up, but [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"enabled":false},"version":2}},"categories":[10],"tags":[186,168,158,185],"class_list":["post-1584","post","type-post","status-publish","format-standard","hentry","category-tricks-tips-tools","tag-private-wiki","tag-python","tag-trac","tag-wiki"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9M11L-py","jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts\/1584","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/comments?post=1584"}],"version-history":[{"count":5,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts\/1584\/revisions"}],"predecessor-version":[{"id":1592,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts\/1584\/revisions\/1592"}],"wp:attachment":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/media?parent=1584"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/categories?post=1584"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/tags?post=1584"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}