Skip to content
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

Set file ownership or permissions on community plugins #469

Open
mdunc opened this issue Dec 6, 2017 · 0 comments
Open

Set file ownership or permissions on community plugins #469

mdunc opened this issue Dec 6, 2017 · 0 comments

Comments

@mdunc
Copy link

mdunc commented Dec 6, 2017

On CIS benchmarked servers (and possibly other benchmarks), the umask settings are pretty strict with all new files getting created with permissions of 600. Since plugins get downloaded as root and end up with these permissions, the rabbitmq service cannot read the plugin and fails to start.

Possible fixes are to add the following to the remote_file section of community_plugins.rb to set ownership to rabbitmq, preserving permissions:

owner 'rabbitmq'
group 'rabbitmq'

or change the permissions with the following (edit: thinking about it more, I think this would be consistent with other plugins and probably preferable):

mode 0644
@michaelklishin michaelklishin added this to the 5.6.0 milestone Feb 19, 2018
@michaelklishin michaelklishin modified the milestones: 5.6.0, 5.6.2 Mar 1, 2018
@michaelklishin michaelklishin removed this from the 5.6.2 milestone Mar 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants