At the same time, I want the auditd service to start forever, and the user cannot stop it with any commands.
My current auditd service is:
~]
I cannot stop this service from the command:
# systemctl stop auditd.service Failed to stop auditd.service: Operation refused, unit auditd.service may be requested by dependency only.
But when I use the service auditd stop . I can stop this service as usual.
How can I prevent this? Thanks
source share