1
0
intel-media-ffmpeg/templates/rhel/18-create-user.in
James Ketrenos b26d1e5df5 Update to latest xe-solutions
Signed-off-by: James Ketrenos <james.p.ketrenos@intel.com>
2021-01-19 12:03:40 -08:00

19 lines
502 B
Plaintext

# Create user 'user' and add them to 'sudo' for sudo access and set
# the passwd to 'user'
FROM xe-base-stage AS xe-user-stage
RUN dnf install -y sudo
# NOTE: Requires 'sudo' package to already be installed
RUN groupadd -r user \
&& useradd --no-log-init \
-s /bin/bash \
-r -m \
-g user \
-G wheel,video \
-p $(echo "user" | openssl passwd -stdin) user
# Set 'wheel' to NOPASSWD for all container users
RUN sed -i -e 's,%wheel.*,%wheel ALL=(ALL) NOPASSWD:ALL,g' /etc/sudoers