<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi,<br>
<br>
Something like this must do the job :<br>
<br>
<div class="code panel" style="border-width: 1px;">
<div class="codeHeader panelHeader" style="border-bottom-width:
1px;"><b>/etc/default/collectdmon</b></div>
<div class="codeContent panelContent">
<pre class="theme: Confluence; brush: bash; gutter: false" style="font-size:12px;">umask 0002</pre>
<br>
</div>
</div>
<br>
Le 03/10/2015 23:47, Thomas D. a écrit :<br>
</div>
<blockquote cite="mid:56104CF8.2030603@whissi.de" type="cite">
<pre wrap="">Hi,
I want to use an own user for collectd (collectd) and rrdcached (rrdcached).
Therefore the user "collectd" is in group "rrdcached".
I created "/srv/rrdcached{,/data,/journal}" with "chmod 2770" (user and
group is set to "rrdcached").
Collectd is able to create files in "/srv/rrdcached/data/*" but is
unable to update the created file:
</pre>
<blockquote type="cite">
<pre wrap="">Oct 3 23:20:45 collect0r collectd[32139]: rrdcached plugin: rrdc_update (/srv/rrdcached/data/test1.example.org/load/load.rrd, [1443907245:0.020000:0.100000:0.090000], 1) failed with status -1.
</pre>
</blockquote>
<pre wrap="">
That's because collectd created the file with mode 644.
When changing permissions to 664 everything works.
So isn't it recommended to run both services using separated users?
Maybe we can have a "mode" option in rrdcached plugin to control file
creation or is that a bad idea (i.e. do you recommend to change my setup)?
Thanks!
-Thomas
_______________________________________________
collectd mailing list
<a class="moz-txt-link-abbreviated" href="mailto:collectd@verplant.org">collectd@verplant.org</a>
<a class="moz-txt-link-freetext" href="http://mailman.verplant.org/listinfo/collectd">http://mailman.verplant.org/listinfo/collectd</a>
</pre>
</blockquote>
<br>
</body>
</html>