1
0
intel-media-ffmpeg/templates/20-create-agama-user.in
2019-09-16 16:59:25 -07:00

15 lines
425 B
Plaintext

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