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@verplant.org
http://mailman.verplant.org/listinfo/collectd
_______________________________________________
collectd mailing list
collectd@verplant.org
http://mailman.verplant.org/listinfo/collectd