systemctl stop auditd

执行systemctl stop auditd报错:operation refused,unit auditd.service may be requested by dependency only(it is configured to refuse manual start/stop)

1 Like

从报错信息看是audidt服务配置了拒绝手动启动或停止服务,查看/usr/lib/systemd/system/auditd.service发现了配置:RefuseManualStop=yes,将此配置改为RefuseManualStop=no,然后执行systemctl daemon-reload,再执行systemctl stop auditd就不会报错了。

2 Likes