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

Amazon Linux 2 Auditd fails to restart #270

Closed
mfortin opened this issue Mar 19, 2021 · 0 comments
Closed

Amazon Linux 2 Auditd fails to restart #270

mfortin opened this issue Mar 19, 2021 · 0 comments

Comments

@mfortin
Copy link
Contributor

mfortin commented Mar 19, 2021

Describe the bug
Amazon Linux 2 fails to restart auditd service to apply changes.
Expected behavior
Service restart successfully

Actual behavior

Failed to restart auditd.service: Operation refused, unit auditd.service may be requested by dependency only (it is configured to refuse manual start/stop).

Example code

$ sudo systemctl restart auditd
Failed to restart auditd.service: Operation refused, unit auditd.service may be requested by dependency only (it is configured to refuse manual start/stop).
See system logs and 'systemctl status auditd.service' for details.

OS / Environment

Chef Version

14.7.17

Cookbook Version

4.0.0

Additional context
CentOS 7+ and Fedora 27+ had the same issue which is resolved by running service auditd restart. This alternate method should also include Amazon Linux 2.

mfortin added a commit to mfortin/chef-os-hardening that referenced this issue Mar 19, 2021
mfortin added a commit to mfortin/chef-os-hardening that referenced this issue Mar 19, 2021
Signed-off-by: Mathieu Fortin <mathieu.fortin@autodesk.com>
chris-rock pushed a commit that referenced this issue Mar 23, 2021
fixes issue #270

Signed-off-by: Mathieu Fortin <mathieu.fortin@autodesk.com>
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