Skip to content

Commit

Permalink
Add a user and allow passwordless sudo
Browse files Browse the repository at this point in the history
  • Loading branch information
amezin committed Sep 7, 2024
1 parent f3c511d commit cbc7b5a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ RUN dnf update -y && \
--setopt install_weak_deps=False \
&& dnf clean all -y

RUN adduser -m -U -G users,adm user \
&& echo "ALL ALL=NOPASSWD: ALL" >/etc/sudoers.d/nopasswd \
&& chmod u+rw /etc/shadow

VOLUME /var/lib/containers

# Avoid D-Bus access
Expand Down

0 comments on commit cbc7b5a

Please sign in to comment.