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

@ -61,10 +61,13 @@ RUN set -eux && INSTALL_PKGS="bash \
--setopt=tsflags=nodocs ${INSTALL_PKGS} && \
pip3 install supervisor && \
ln -s /usr/local/bin/supervisord /usr/bin/supervisord && \
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 /etc/zabbix/web && \