Don't add root user into mqm group
This commit is contained in:
@@ -106,7 +106,6 @@ $UBUNTU && apt-get autoremove -y
|
|||||||
# Recommended: Create the mqm user ID with a fixed UID and group, so that the file permissions work between different images
|
# Recommended: Create the mqm user ID with a fixed UID and group, so that the file permissions work between different images
|
||||||
groupadd --system --gid ${mqm_uid} mqm
|
groupadd --system --gid ${mqm_uid} mqm
|
||||||
useradd --system --uid ${mqm_uid} --gid mqm --groups 0 mqm
|
useradd --system --uid ${mqm_uid} --gid mqm --groups 0 mqm
|
||||||
usermod -aG mqm root
|
|
||||||
|
|
||||||
# Find directory containing .deb files
|
# Find directory containing .deb files
|
||||||
$UBUNTU && DIR_DEB=$(find ${DIR_EXTRACT} -name "*.deb" -printf "%h\n" | sort -u | head -1)
|
$UBUNTU && DIR_DEB=$(find ${DIR_EXTRACT} -name "*.deb" -printf "%h\n" | sort -u | head -1)
|
||||||
|
|||||||
@@ -99,7 +99,6 @@ rm -rf ${mnt_mq}/etc/yum.repos.d/*
|
|||||||
|
|
||||||
buildah run --user root $ctr_mq -- groupadd --system --gid ${mqm_gid} mqm
|
buildah run --user root $ctr_mq -- groupadd --system --gid ${mqm_gid} mqm
|
||||||
buildah run --user root $ctr_mq -- useradd --system --uid ${mqm_uid} --gid mqm --groups 0 mqm
|
buildah run --user root $ctr_mq -- useradd --system --uid ${mqm_uid} --gid mqm --groups 0 mqm
|
||||||
buildah run --user root $ctr_mq -- usermod -aG mqm root
|
|
||||||
|
|
||||||
# Install MQ server packages into the MQ builder image
|
# Install MQ server packages into the MQ builder image
|
||||||
./mq-advanced-server-rhel/install-mq-rhel.sh ${ctr_mq} "${mnt_mq}" "${archive}" "${packages}"
|
./mq-advanced-server-rhel/install-mq-rhel.sh ${ctr_mq} "${mnt_mq}" "${archive}" "${packages}"
|
||||||
|
|||||||
Reference in New Issue
Block a user