<br>Hi Florian, <br><br>My script does not print anything to STDERR and I am not trying to
access the log file at all! I have no idea why this error occurred.<br><br>-Ravi<br><br><div class="gmail_quote">On Sat, Jun 12, 2010 at 1:42 AM, Florian Forster <span dir="ltr"><<a href="mailto:octo@verplant.org">octo@verplant.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi Ravi,<br>
</blockquote><div><br> <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
On Wed, Jun 09, 2010 at 12:01:24PM -0700, Raviprakash Ramanujam wrote:<br>
> I have a python script that needs to run under root privileges […]<br>
> […]<br>
> In order to run the script as root, […]<br>
<div class="im"><br>
> <Plugin exec><br>
> Exec "nobody:root" "/root/script.py"<br>
> </Plugin><br>
<br>
</div>this configuration will run the script as user "nobody" and group<br>
"root". Running scripts as root is not possible. You can, however, use<br>
"sudo" inside the script to re-gain root privileges if required.<br>
<div class="im"><br>
> exec plugin: exec_read_one: error = logfile plugin: fopen (/var/log/collectd.log) failed: Permission denied<br>
<br>
</div>You're doing something mighty weird here: Why is the script printing<br>
something about the "logfile plugin" to STDERR? And why is it trying to<br>
access the log file directly?<br>
<br>
Regards,<br>
—octo<br>
<font color="#888888">--<br>
Florian octo Forster<br>
Hacker in training<br>
GnuPG: 0x91523C3D<br>
<a href="http://verplant.org/" target="_blank">http://verplant.org/</a><br>
</font><br>-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.6 (GNU/Linux)<br>
<br>
iD8DBQFME0hhHdggu3Q05IYRAtPDAKCES5xfvIzE6WxXsK6J5jCD52FaxQCfZW5C<br>
B1S56JisxUYkJ2kaP1oTz/A=<br>
=7VaW<br>
-----END PGP SIGNATURE-----<br>
<br></blockquote></div><br>