Skip to content

Instantly share code, notes, and snippets.

@barlino
Created June 19, 2012 04:07
Show Gist options
  • Save barlino/2952245 to your computer and use it in GitHub Desktop.
Save barlino/2952245 to your computer and use it in GitHub Desktop.
使用 trac-admin配置TRAC的訪問控制
trac-admin /path_to_repo/project
#list help
Trac[/path_to_repo/project]> ?
#list current permission
Trac[/path_to_repo/project]> permission list
User Action
--------------------------
anonymous BROWSER_VIEW
anonymous CHANGESET_VIEW
anonymous FILE_VIEW
anonymous LOG_VIEW
anonymous MILESTONE_VIEW
anonymous REPORT_SQL_VIEW
anonymous REPORT_VIEW
anonymous ROADMAP_VIEW
anonymous SEARCH_VIEW
anonymous TICKET_CREATE
anonymous TICKET_MODIFY
anonymous TICKET_VIEW
anonymous TIMELINE_VIEW
anonymous WIKI_CREATE
anonymous WIKI_MODIFY
anonymous WIKI_VIEW
#remove anonymous permission
Trac[/path_to_repo/project]> permission remove anonymous *
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment