Hopefully someone here can spot what I missed or confirm what I am thinking.

I started trac back with the 0.8.x series. I set up somewhere in September
2005 and created a bunch of tickets and attachments.
This all resides in /usr/local/trac and everything is chown'd trac:trac.

I run trac as CGI under apache as user www:www. (Yes, fastcgi is probably
better, but moving to lighttpd soon anyway.)

Never had a permission problem.

Since then I moved through 0.9.x to 0.10 to spot trac issues with newer
versions.

I was noted that attachments stopped working, the problem is, since September
and now no-one added an attachment (the project had a slight period of
dormancy while we reworked stuff behind the scenes).

So I create a test attachment and indeed I get a permission error for mkdir to
attachment/ticket/<number>.

So I made sure www was member of group trac (always has been since the start)
and proceded to chown g+ws on the attachment and ticket directory. I can now
upload attachments. Files now get created as www:trac with 755 permissions.
Which is, of course, different from the trac:trac the older attachments had.

I also reckon that trac-admin's ticket remove <number> probably removes the
attachments as well, although I haven't verified this yet.

So my question is: what has changed in between that might cause this
permission regression?

The only thing I can think of might be that I ran tracd initially before
hooking it up into apache's configuration. I just cannot remember if I did or
not. So some confirmation of my reasoning is also appreciated. :)

-- 
Jeroen Ruigrok van der Werven <asmodai(-at-)in-nomine.org> / asmodai
イェルーン ラウフロック ヴァン デル ウェルヴェン
http://www.in-nomine.org/
Only in sleep can one find salvation that resembles Death...
_______________________________________________
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac

Reply via email to