This commit is contained in:
MedzikUser 2021-10-09 15:30:21 +02:00
parent 0396964364
commit e0235dd80a
No known key found for this signature in database
GPG Key ID: 3AC8B718A75F3281
2 changed files with 5 additions and 2 deletions

View File

@ -4,8 +4,9 @@ RUN pacman -Syu --noconfirm \
git \
base
RUN useradd -l -G wheel,storage,power -m -s /bin/bash -p archie archie \
&& sed -i.bkp -e 's/%sudo\s\+ALL=(ALL\(:ALL\)\?)\s\+ALL/%sudo ALL=NOPASSWD:ALL/g' /etc/sudoers
RUN useradd -m -d /build -s /bin/bash archie
ADD sudoers /etc/sudoers
USER archie

2
sudoers Normal file
View File

@ -0,0 +1,2 @@
root ALL=(ALL) ALL
archie ALL=(ALL) NOPASSWD: ALL