zabbix-agent安装报错

最近接触了zabbix,觉得挺好用的,再一次安装agent的过程中,报了如下错误:

[root@11005499 ~]# yum install zabbix-agent -y
...
groupadd: cannot open /etc/group
useradd: group 'zabbix' does not exist
  Installing : zabbix-agent-3.2.11-1.el7.x86_64                                                                                                                                                                                                                           1/1 
warning: user zabbix does not exist - using root
warning: group zabbix does not exist - using root
warning: user zabbix does not exist - using root
warning: group zabbix does not exist - using root
  Verifying  : zabbix-agent-3.2.11-1.el7.x86_64                                                                                                                                                                                                                           1/1 

Installed:
  zabbix-agent.x86_64 0:3.2.11-1.el7                                                                                                                                                                                                                                          

Complete!

 根据错误信息,我们可以知道, /etc/group 权限有问题,目测是添加了 i 位设置,查看下:

[root@11005499 ~]# lsattr /etc/group
----i----------- /etc/group

  那当然需要去除 i 位了,由于用户也需要创建,接触操作如下:

[root@11005499 ~]# chattr -i /etc/group \
> && chattr -i /etc/gshadow \
> && chattr -i /etc/passwd \
> && chattr -i /etc/shadow

  如此就可以了。

以上

猜你喜欢

转载自www.cnblogs.com/cxbhakim/p/9401249.html