<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Sat, Oct 3, 2015 at 5:50 PM Thomas D. <<a href="mailto:whissi@whissi.de">whissi@whissi.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I want to use an own user for collectd (collectd) and rrdcached (rrdcached).<br>
<br>
Therefore the user "collectd" is in group "rrdcached".<br>
<br>
I created "/srv/rrdcached{,/data,/journal}" with "chmod 2770" (user and<br>
group is set to "rrdcached").<br>
<br>
Collectd is able to create files in "/srv/rrdcached/data/*" but is<br>
unable to update the created file:<br>
<br>
> Oct 3 23:20:45 collect0r collectd[32139]: rrdcached plugin: rrdc_update (/srv/rrdcached/data/<a href="http://test1.example.org/load/load.rrd" rel="noreferrer" target="_blank">test1.example.org/load/load.rrd</a>, [1443907245:0.020000:0.100000:0.090000], 1) failed with status -1.<br>
<br>
That's because collectd created the file with mode 644.<br>
<br>
When changing permissions to 664 everything works.<br>
<br></blockquote><div>A recursive setfacl on /srv/rrdcached/data might work, something like:<br><br></div><div> setfacl -R -m d:u:collectd:rwX /srv/rrdcached/data<br><br></div><div>Giovanni<br></div></div></div>