mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2025-01-31 04:46:11 +01:00
Remove ubuntu user to replace with crafty user
Needing to as shipped user in sudoers, creating dummy mail to save on error/warn in build
This commit is contained in:
parent
1add1284fb
commit
756aadd0cb
@ -5,8 +5,12 @@ ENV DEBIAN_FRONTEND="noninteractive"
|
|||||||
# Security Patch for CVE-2021-44228
|
# Security Patch for CVE-2021-44228
|
||||||
ENV LOG4J_FORMAT_MSG_NO_LOOKUPS=true
|
ENV LOG4J_FORMAT_MSG_NO_LOOKUPS=true
|
||||||
|
|
||||||
|
# Remove shipped sudoer user (Required for Ubuntu 24.04 base) MR !826
|
||||||
# Create non-root user & required dirs
|
# Create non-root user & required dirs
|
||||||
RUN useradd -g root -M crafty \
|
RUN touch /var/mail/ubuntu \
|
||||||
|
&& chown ubuntu /var/mail/ubuntu \
|
||||||
|
&& userdel -r ubuntu \
|
||||||
|
&& useradd -g root -M crafty \
|
||||||
&& mkdir /crafty \
|
&& mkdir /crafty \
|
||||||
&& chown -R crafty:root /crafty
|
&& chown -R crafty:root /crafty
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user