1 | I have tried by having the alias directly call the email2trac script, but receive similar security notifications.<br>Copied below are two major possiblities. The alias for trac directly calls email2trac in both cases. In the first, root owns the email2trac script, in the second instance the email2trac script was chowned to apache user. |
---|
2 | <br><br>Nov 5 10:09:31 cnsetrac email2trac: Traceback (most recent call last): <br>Nov 5 10:09:31 cnsetrac email2trac: File "/usr/local/bin/email2trac", line 1060, in ? env = Environment(settings['project'], create=0) |
---|
3 | <br>Nov 5 10:09:31 cnsetrac email2trac: File "/usr/lib/python2.4/site-packages/trac/env.py", line 147, in __init__ self.verify() <br>Nov 5 10:09:31 cnsetrac email2trac: File "/usr/lib/python2.4/site-packages/trac/env.py", line 195, in verify fd = open( |
---|
4 | os.path.join(self.path, 'VERSION'), 'r') <br>Nov 5 10:09:31 cnsetrac email2trac: IOError: [Errno 13] Permission denied: '/var/www/trac/CNSEHelp/VERSION' <br><br>Nov 5 10:10:49 cnsetrac email2trac: Traceback (most recent call last): |
---|
5 | <br>Nov 5 10:10:49 cnsetrac email2trac: File "/usr/local/bin/email2trac", line 1060, in ? env = Environment(settings['project'], create=0) <br>Nov 5 10:10:49 cnsetrac email2trac: File "/usr/lib/python2.4/site-packages/trac/env.py", line 147, in __init__ |
---|
6 | self.verify() <br>Nov 5 10:10:49 cnsetrac email2trac: File "/usr/lib/python2.4/site-packages/trac/env.py", line 195, in verify fd = open(os.path.join(self.path, 'VERSION'), 'r') <br>Nov 5 10:10:49 cnsetrac email2trac: IOError: [Errno 13] Permission denied: '/var/www/trac/CNSEHelp/VERSION' |
---|
7 | <br><br><br><div><span class="gmail_quote">On 11/3/07, <b class="gmail_sendername">email2trac</b> <<a href="mailto:email2trac@sara.nl" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> |
---|
8 | email2trac@sara.nl</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">#32: permissions issue, email2trac config<br>-----------------------------+---------------------------------------------- |
---|
9 | <br>Reporter: <a href="mailto:acgoss@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">acgoss@gmail.com</a> | Owner: bas<br> Type: defect | Status: assigned |
---|
10 | <br>Priority: major | Component: email2trac<br> Version: |
---|
11 | 0.10 | Resolution:<br>Keywords: |<br>-----------------------------+----------------------------------------------<br>Comment (by bas):<br><br> and run_email2trac is setuid root. If yes can you run run_email2trac in |
---|
12 | <br> debug mode as the postfix user:<br><br> run_email2trac --project=<name> < msg.txt<br><br> There must be something wrong in switching from the postfix user to the<br> apache user. There is also another setup for postfix without the need for |
---|
13 | <br> run_email2trac did you tried that one?<br><br>--<br>Ticket URL: <<a href="https://subtrac.rc.sara.nl/oss/email2trac/ticket/32#comment:5" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">https://subtrac.rc.sara.nl/oss/email2trac/ticket/32#comment:5 |
---|
14 | </a>><br>email2trac < |
---|
15 | <a href="https://subtrac.sara.nl/oss/email2trac" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">https://subtrac.sara.nl/oss/email2trac</a>><br>Documentation server for email2trac</blockquote></div> |
---|
16 | <br> |
---|