Skip to content

Commit

Permalink
Add user to users group
Browse files Browse the repository at this point in the history
  • Loading branch information
gbraad authored Feb 1, 2025
1 parent 8c2b711 commit c7c663e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion containers/Containerfile-dotfiles
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ARG USER_PASSWD
LABEL org.opencontainers.image.source = "https://github.com/gbraad-devenv/fedora"

# Add user with the expected ID (automated setup does not work atm)
RUN useradd -l -u 1000 -G wheel -md /var/home/gbraad -s /bin/bash -p gbraad gbraad \
RUN useradd -l -u 1000 -G users,wheel -md /var/home/gbraad -s /bin/bash -p gbraad gbraad \
&& sed -i.bkp -e 's/%wheel\s\+ALL=(ALL\(:ALL\)\?)\s\+ALL/%wheel ALL=NOPASSWD:ALL/g' /etc/sudoers \
&& if [ -n "${USER_PASSWD}" ] ; then \
echo "gbraad:${USER_PASSWD}" | sudo chpasswd && echo "Password set to: ${USER_PASSWD}"; \
Expand Down

0 comments on commit c7c663e

Please sign in to comment.