Review zabbix user and group configuration

This commit is contained in:
Alexey Pustovalov
2020-12-19 12:24:40 -05:00
parent 8e4416101e
commit 801beafe69
8 changed files with 52 additions and 27 deletions

View File

@ -45,10 +45,13 @@ RUN set -eux && INSTALL_PKGS="bash \
--security --sec-severity=Important --sec-severity=Critical && \
dnf -y install --disablerepo "*" --enablerepo "${REPOLIST}" --setopt=install_weak_deps=False --best \
--setopt=tsflags=nodocs ${INSTALL_PKGS} && \
groupadd -g 1995 --system zabbix && \
adduser -r --shell /sbin/nologin \
groupadd --system --gid 1995 zabbix && \
useradd \
--system --comment "Zabbix monitoring system" \
-g zabbix -G root \
-d /var/lib/zabbix/ -u 1997 \
--uid 1997 \
--shell /sbin/nologin \
--home-dir /var/lib/zabbix/ \
zabbix && \
mkdir -p /etc/zabbix/ && \
mkdir -p /usr/sbin/zabbix_java/ && \