File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
images/docker-stacks-foundation Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ RUN sed -i 's/^#force_color_prompt=yes/force_color_prompt=yes/' /etc/skel/.bashr
67
67
RUN echo "auth requisite pam_deny.so" >> /etc/pam.d/su && \
68
68
sed -i.bak -e 's/^%admin/#%admin/' /etc/sudoers && \
69
69
sed -i.bak -e 's/^%sudo/#%sudo/' /etc/sudoers && \
70
- useradd -l -m -s /bin/bash -N -u "${NB_UID}" "${NB_USER}" && \
70
+ useradd --no-log-init --create-home --shell /bin/bash --uid "${NB_UID}" --no-user-group "${NB_USER}" && \
71
71
mkdir -p "${CONDA_DIR}" && \
72
72
chown "${NB_USER}:${NB_GID}" "${CONDA_DIR}" && \
73
73
chmod g+w /etc/passwd && \
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ if [ "$(id -u)" == 0 ] ; then
101
101
fi
102
102
# Recreate the desired user as we want it
103
103
userdel " ${NB_USER} "
104
- useradd --home " /home/${NB_USER} " --uid " ${NB_UID} " --gid " ${NB_GID} " --groups 100 --no-log-init " ${NB_USER} "
104
+ useradd --no-log-init -- home " /home/${NB_USER} " --uid " ${NB_UID} " --gid " ${NB_GID} " --groups 100 " ${NB_USER} "
105
105
fi
106
106
107
107
# Move or symlink the jovyan home directory to the desired users home
You can’t perform that action at this time.
0 commit comments