Skip to content
Snippets Groups Projects
Commit 1dfff743 authored by Marco De Donno's avatar Marco De Donno
Browse files

hardened the user list

parent 9c568ba6
No related branches found
No related tags found
No related merge requests found
Pipeline #1922 passed
......@@ -13,10 +13,9 @@ RUN pip install --upgrade pip
################################################################################
# User configuration
RUN groupadd -r icnml && \
useradd -r -g icnml icnml && \
mkdir /home/icnml && \
chown icnml:icnml /home/icnml
RUN adduser --shell /bin/true --no-create-home --uid 999 --disabled-password --disabled-login icnml && \
sed -i -r "/^(icnml|root)/!d" /etc/group /etc/passwd && \
sed -i -r 's#^(.*):[^:]*$#\1:/sbin/nologin#' /etc/passwd
################################################################################
# Installation of Marco De Donno's libraries and depencencies
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment