On 09/12/14 09:36, Michael Klishin wrote:
> RabbitMQ and related tools (e.g. rabbitmq-plugins) need the enabled_plugins file to be
> both readable and writeable. Have you considered changing its ownership to `rabbitmq`?
No. That's not the right answer.
enabled_plugins should be owned by root and world readable. Owned by
root because rabbitmq-plugins will write it, and world-readable since
the 'rabbitmq' user the server runs as needs to read it.
The .deb / RPM packages should set this up by default, and I believe
that's what chef uses.
However, rabbitmq-plugins (and indeed everything in RabbitMQ) doesn't
mess with permissions directly, it just writes the file. So something in
the OS configuration is causing this.
If I had to guess I'd suggest the root user's umask is set to something
that prevents files being world-readable by default?
Cheers, Simon