Permissions check fails

Issue #322 resolved
Tobias Schifftner created an issue

Permissions on file are 0644

-rw-rw-r-- 1 root root 265 Jan 30 15:56 /lib/systemd/system/firewall.service

Monit service:

check file firewall_systemd with path /lib/systemd/system/firewall.service

    if failed permission 0644 then alert
    if failed uid root then alert
    if failed gid root then alert
    if size < 200 then alert

Results in "Permission failed"

MMonit:

permission test failed for /lib/systemd/system/firewall.service [current permission 0664]

Comments (4)

  1. Tildeslash repo owner

    It's just configuration issue, the permissions "-rw-rw-r--" are 0664, not 0644, i.e. the test should be:

    if failed permission 0664 then alert
    
  2. Log in to comment