﻿id,summary,reporter,owner,description,type,status,priority,component,severity,resolution,keywords,cc,release
9970,Only root may execute trac-admin commands,jan.zilka@…,mrelbe,"Only root may execute trac-admin commands, which prevents me to allow ""apache"" user to execute trac-admin commands within pre-commit and pre-revprop-change subversion hooks scripts.

Even root encounters error when invoking command help (see example below). That may be caused by something in file ""console.py"" of trac installation, or, ""admin.py"" from  ticketchangesetsplugin .

{{{
#!sh
[root@my_server hooks]# trac-admin /home/trac/project7 ticket_changesets help
Error: Command not found

ticket_changesets diff

    Examine ticket commit messages before reformat

ticket_changesets get [ticketid]

    Get a comma-separated list of related revisions.

ticket_changesets reformat

    Reformat ticket commit messages (DANGEROUS!)

ticket_changesets resync

    Re-synchronize ticket changesets with all repositories

}}}

root
{{{
#!sh
[root@my_server admin]# trac-admin /home/trac/project7 ?
trac-admin - The Trac Administration Console 0.12.2

Usage: trac-admin </path/to/projenv> [command [subcommand] [option ...]]

Invoking trac-admin without command starts interactive mode.

help                        Show documentation
initenv                     Create and initialize a new environment
attachment add              Attach a file to a resource
...
...
ticket remove               Remove ticket
ticket_changesets diff      Examine ticket commit messages before reformat
ticket_changesets get       Get a comma-separated list of related revisions.
ticket_changesets reformat  Reformat ticket commit messages (DANGEROUS!)
ticket_changesets resync    Re-synchronize ticket changesets with all repositories
ticket_type add             Add a ticket type
...
wiki replace                Replace the content of wiki pages from files (DANGEROUS!)
wiki upgrade                Upgrade default wiki pages to current version
}}}

apache (non-root)
{{{
#!sh
[apache_user@my_server admin]# trac-admin /home/trac/project7 ?
trac-admin - The Trac Administration Console 0.12.2

Usage: trac-admin </path/to/projenv> [command [subcommand] [option ...]]

Invoking trac-admin without command starts interactive mode.

help                        Show documentation
initenv                     Create and initialize a new environment
attachment add              Attach a file to a resource
...
...
ticket remove               Remove ticket
ticket_type add             Add a ticket type
...
wiki replace                Replace the content of wiki pages from files (DANGEROUS!)
wiki upgrade                Upgrade default wiki pages to current version
}}}}}}
see, that ticket_changesets commands are missing here. Why?",defect,closed,high,TracTicketChangesetsPlugin,major,worksforme,,,0.12
