-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"insecure permissions" error fron logrotate cron task #713
Comments
sounds like maybe we need to set the user here in the config file: https://github.com/influxdata/telegraf/blob/master/etc/logrotate.d/telegraf |
are you running the telegraf service as root? |
It is running as user telegraf. Basically my setup is "yum install http://get.influxdb.org/telegraf/telegraf-0.10.3-1.x86_64.rpm" + modified telegraf.conf + "systemctl start telegraf". Btw, /var/log/telegraf permissions got reset again when I upgraded to 0.10.3. Is there actually any need to have the directory group writable, i.e. would it be simplest to do "chmod g-w"? |
hm, no it really doesn't, this looks like a permissions issue with the rpm package:
|
same thing with .deb:
cc @rossmcdonald is /var/log/telegraf supposed to be owned by telegraf:telegraf? |
FWIW, in general the practice seems rather inconsistent:
|
@sparrc Yes, the owner/group are set in the post-install script here. It can be changed if needed, though that's how InfluxDB and Kapacitor have it set as well. I'm not sure why the RPM has |
oh right, I didn't notice that |
On Centos 7, the following error appears when using telegraf 0.10.2:
"chmod 755 /var/log/telegraf" fixes the issue.
The text was updated successfully, but these errors were encountered: