Making Trac database read-only

300 views
Skip to first unread message

Brian

unread,
Oct 27, 2009, 12:53:59 PM10/27/09
to Trac Users
Hello,

I was wondering if there is any way to make Trac read-only? We want
to stop all updates (tickets, changesets, wiki, etc.) to Trac for a
period of time, but we would like to keep the Trac database up and
running for read purposes. I've looked everything I can think of on
google and the edgewall site, and can't seem to find anything that
would enable read-only access.

Is there any way to do this in Trac? We are using version 0.11.4.

Thanks for any assistance you can provide!

Brian

Noah Kantrowitz

unread,
Oct 27, 2009, 1:50:59 PM10/27/09
to trac-...@googlegroups.com
Remove all MODIFY permissions from all users (and CREATE/DELETE too).

--Noah

Brian

unread,
Oct 27, 2009, 3:29:29 PM10/27/09
to Trac Users
Yeah, I had thought of that, but was just wondering if there was some
trac.ini flag that I could set instead.

Thanks for the confirmation, Noah!

RjOllos

unread,
Oct 28, 2009, 5:05:09 PM10/28/09
to Trac Users
On Oct 27, 12:29 pm, Brian <brianl...@gmail.com> wrote:
> Yeah, I had thought of that, but was just wondering if there was some
> trac.ini flag that I could set instead.
>
> Thanks for the confirmation, Noah!

It sounds like you are looking for a one step solution for setting
read only. I think that can be done by following Noah's suggestions.
Create a group that has all of the modify permissions that you
normally assign to your users, and another group that has all of the
view permissions. A simple example is:

authenticated = @view, @modify
view = TICKET_VIEW, TIMELINE_VIEW, ...
modify = TICKET_MODIFY, WIKI_CREATE, ...

When you want to set the site to read only, you can just remove the
modify permission group from your set of users.

This could be more complicated with a complicated set of users and
groups.
Reply all
Reply to author
Forward
0 new messages