monit is not starting if group permission is given to /etc/monitrc

Issue #967 invalid
Mritunjay Kumar created an issue

monit is not starting if group permission is given to /etc/monitrc

Following file permission is given

bash-4.2$ ls -la etc/monitrc

-rw-rwx---. 1 user root 518 Mar 31 14:43 etc/monitrc

Monit is throwing following error:

The control file '/etc/monitrc' must be owned by you.

The control file '/etc/monitrc' permission 0670 is wrong, maximum 0700 allowed

How to solve this issue?

Comments (1)

  1. Tildeslash repo owner

    As the monit configuration file contains credentials for the monit http interface, monit requires the configuration owner to match the user under which monit is started and maximal permissions are 0700 ... both problems were stated in the error message. You can change the owner and permissions using chown and chmod utilities.

  2. Log in to comment