Ticket #32: part0001.3.html

File part0001.3.html, 4.2 KB (added by Adam Goss, 15 years ago)

Added by email2trac

Line 
1I have tried by having the alias directly call the email2trac script, but receive similar security notifications.<br>Copied below are two major possiblities.&nbsp; The alias for trac directly calls email2trac in both cases.&nbsp; In the first, root owns the email2trac script, in the second instance the email2trac script was chowned to apache user.
2<br><br>Nov&nbsp; 5 10:09:31 cnsetrac email2trac: Traceback (most recent call last): <br>Nov&nbsp; 5 10:09:31 cnsetrac email2trac:&nbsp;&nbsp; File &quot;/usr/local/bin/email2trac&quot;, line 1060, in ?&nbsp;&nbsp;&nbsp;&nbsp; env = Environment(settings[&#39;project&#39;], create=0)
3<br>Nov&nbsp; 5 10:09:31 cnsetrac email2trac:&nbsp;&nbsp; File &quot;/usr/lib/python2.4/site-packages/trac/env.py&quot;, line 147, in __init__&nbsp;&nbsp;&nbsp;&nbsp; self.verify() <br>Nov&nbsp; 5 10:09:31 cnsetrac email2trac:&nbsp;&nbsp; File &quot;/usr/lib/python2.4/site-packages/trac/env.py&quot;, line 195, in verify&nbsp;&nbsp;&nbsp;&nbsp; fd = open(
4os.path.join(self.path, &#39;VERSION&#39;), &#39;r&#39;) <br>Nov&nbsp; 5 10:09:31 cnsetrac email2trac: IOError: [Errno 13] Permission denied: &#39;/var/www/trac/CNSEHelp/VERSION&#39; <br><br>Nov&nbsp; 5 10:10:49 cnsetrac email2trac: Traceback (most recent call last):
5<br>Nov&nbsp; 5 10:10:49 cnsetrac email2trac:&nbsp;&nbsp; File &quot;/usr/local/bin/email2trac&quot;, line 1060, in ?&nbsp;&nbsp;&nbsp;&nbsp; env = Environment(settings[&#39;project&#39;], create=0) <br>Nov&nbsp; 5 10:10:49 cnsetrac email2trac:&nbsp;&nbsp; File &quot;/usr/lib/python2.4/site-packages/trac/env.py&quot;, line 147, in __init__&nbsp;&nbsp;&nbsp;&nbsp; 
6self.verify() <br>Nov&nbsp; 5 10:10:49 cnsetrac email2trac:&nbsp;&nbsp; File &quot;/usr/lib/python2.4/site-packages/trac/env.py&quot;, line 195, in verify&nbsp;&nbsp;&nbsp;&nbsp; fd = open(os.path.join(self.path, &#39;VERSION&#39;), &#39;r&#39;) <br>Nov&nbsp; 5 10:10:49 cnsetrac email2trac: IOError: [Errno 13] Permission denied: &#39;/var/www/trac/CNSEHelp/VERSION&#39; 
7<br><br><br><div><span class="gmail_quote">On 11/3/07, <b class="gmail_sendername">email2trac</b> &lt;<a href="mailto:email2trac@sara.nl" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
8email2trac@sara.nl</a>&gt; 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:&nbsp;&nbsp;<a href="mailto:acgoss@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">acgoss@gmail.com</a>&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Owner:&nbsp;&nbsp;bas<br>&nbsp;&nbsp;&nbsp;&nbsp;Type:&nbsp;&nbsp;defect&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Status:&nbsp;&nbsp;assigned
10<br>Priority:&nbsp;&nbsp;major&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;Component:&nbsp;&nbsp;email2trac<br> Version:&nbsp;&nbsp;
110.10&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp; Resolution:<br>Keywords:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|<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=&lt;name&gt; &lt; 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: &lt;<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>&gt;<br>email2trac &lt;
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>&gt;<br>Documentation server for email2trac</blockquote></div>
16<br>