Skip to content

Logrotate not working due to file permission #111

@carsonip

Description

@carsonip

With umask 002, when I git clone the repo, the conf/etc/logrotate.d/graphite-statsd has file permission 664. But logrotate doesn't like that:

/ # logrotate -vdf /etc/logrotate.d/graphite-statsd 
WARNING: logrotate in debug mode does nothing except printing debug messages!  Consider using verbose mode (-v) instead if this is not what you want.

Potentially dangerous mode on /etc/logrotate.d/graphite-statsd: 0664
error: Ignoring /etc/logrotate.d/graphite-statsd because it is writable by group or others.
Reading state from file: /var/lib/logrotate.status
Allocating hash table for state file, size 64 entries

Handling 0 logs

This means if the project is cloned and run with docker-compose and default system settings, logrotate most probably won't work.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions