[collectd] rrdcached plugin: Problems with file permissions

Poil poil at quake.fr
Sun Oct 4 18:04:48 CEST 2015


Hi,

Something like this must do the job :

*/etc/default/collectdmon*

umask 0002



Le 03/10/2015 23:47, Thomas D. a écrit :
> 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.
>
> 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
> collectd at verplant.org
> http://mailman.verplant.org/listinfo/collectd

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


More information about the collectd mailing list