[collectd] rrdcached plugin: Problems with file permissions

Giovanni Torres giovanni.torres at gmail.com
Sun Oct 4 02:36:21 CEST 2015


On Sat, Oct 3, 2015 at 5:50 PM Thomas D. <whissi at whissi.de> wrote:

> 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:
>
> > 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.
>
> That's because collectd created the file with mode 644.
>
> When changing permissions to 664 everything works.
>
> A recursive setfacl on /srv/rrdcached/data might work, something like:

  setfacl -R -m d:u:collectd:rwX /srv/rrdcached/data

Giovanni
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.verplant.org/pipermail/collectd/attachments/20151004/a1e36514/attachment.html>


More information about the collectd mailing list