Version 1 (modified by Álvaro Iradier, 13 years ago) (diff)

New hack SuperUserPlugin, created by airadier

Super User Plugin


This plugin automatically gives a given username TRAC_ADMIN permissions. I find this useful for a multiproject setup with AccountManagerPlugin, where users and passwords are shared between all projects, and I want an admin user to have full permissions without manually setting it on every project.

Bugs/Feature Requests

Existing bugs and feature requests for SuperUserPlugin are here.

If you have any issues, create a new ticket.


Download the zipped source from [download:superuserplugin here].


You can check out SuperUserPlugin from here using Subversion, or browse the source with Trac.


The plugin works by wrapping the current PermissionStore, in order to fake the superuser permissions (permissions are not added to the database, but added on the fly when requested).

To enable the plugin, add the line:

tracsuperuser.* = enabled

to the components section in trac.ini.

Then, replace the current PermissionStore. In this example DefaultPermissionStore was used before installing the superuser plugin:

permission_store = SuperUserPlugin
superuser = admin
wrapped_permission_store = DefaultPermissionStore


  • permission_store: Use SuperUserPlugin as the new permission store.
  • supersuser: The name of the user with admin permissions
  • wrapped_permission_store: The permission store being used previously. If the user is not the superuser, this permission store will be used to retrieve the user permissions.

Recent Changes

17128 by rjollos on 2018-04-16 08:41:36
tracsuperuser 0.4: Conform to PEP8
7514 by airadier on 2010-02-08 13:01:51
Support for multiple superusers (comma separated). Fixes #6546.
5675 by airadier on 2009-05-06 09:34:02
Avoid returning duplicates in permissions and users


Author: airadier