monit:控制文件 '/etc/monit/monitrc' 必须归您所有。

3
我有以下细节需要在monitrc中访问:
set httpd port 2812 and
    use address localhost  # only accept connection from localhost
    allow 0.0.0.0/0.0.0.0
#    allow admin:monit      # require user 'admin' with password 'monit'

   allow @mygroup
1个回答

1
在 Monit 的源代码文件 p.y 中的某个地方,有一段代码检查 monitrc 并附有注释。
/*
 * Secure check the monitrc file. The run control file must have the
 * same uid as the REAL uid of this process, it must have permissions
 * no greater than 700 and it must not be a symbolic link.
 */

这个检查生成了消息控制文件'/etc/monit/monitrc'必须归您所有。要解决此问题,您需要更改monitrc文件的所有者或运行Monit守护程序的用户,以使它们相同。

这也符合Monit文档的规定:

为了保护您的控制文件和密码的安全性,控制文件的读写权限不能超过0700(u=xrw,g=,o=);否则Monit会发出警告并退出。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接