From 200266120bb302cd012493e9d521d6431da80095 Mon Sep 17 00:00:00 2001 From: ahgraber Date: Tue, 16 Feb 2021 17:52:46 -0500 Subject: [PATCH] test removing add-user and user-host permissions --- Dockerfile | 8 +++--- root/etc/cont-init.d/01_add-user.sh | 38 ----------------------------- 2 files changed, 4 insertions(+), 42 deletions(-) delete mode 100644 root/etc/cont-init.d/01_add-user.sh diff --git a/Dockerfile b/Dockerfile index d1176fb..d5f39a2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -69,10 +69,10 @@ RUN mkdir -p \ VOLUME /config VOLUME /letsencrypt -# create initial user -RUN groupmod -g 1000 users && \ - useradd -u 911 -U -d /config -s /bin/false abc && \ - usermod -G users abc +# # create initial user +# RUN groupmod -g 1000 users && \ +# useradd -u 911 -U -d /config -s /bin/false abc && \ +# usermod -G users abc COPY root/ / # RUN chmod -R +x /app diff --git a/root/etc/cont-init.d/01_add-user.sh b/root/etc/cont-init.d/01_add-user.sh deleted file mode 100644 index 567b070..0000000 --- a/root/etc/cont-init.d/01_add-user.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/usr/bin/with-contenv bash - -PUID=${PUID:-911} -PGID=${PGID:-911} - -groupmod -o -g "$PGID" abc -usermod -o -u "$PUID" abc - -if [ "$(date +%Y)" == "1970" ] && [ "$(uname -m)" == "armv7l" ]; then - echo ' -@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ - -Your DockerHost is most likely running an outdated version of libseccomp - -To fix this, please visit https://docs.linuxserver.io/faq#libseccomp - -Some apps might not behave correctly without this - -@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ -' -fi - -echo ' -Cribbed from https://github.com/linuxserver/docker-baseimage-alpine/blob/master/root/etc/cont-init.d/10-adduser --------------------------------------' - -echo ' -------------------------------------- -GID/UID --------------------------------------' -echo " -User uid: $(id -u abc) -User gid: $(id -g abc) -------------------------------------- -" -chown abc:abc /app -chown abc:abc /config -chown abc:abc /letsencrypt \ No newline at end of file