From e0235dd80a13bfbcf7ccae2a9498e5eb088a962f Mon Sep 17 00:00:00 2001 From: MedzikUser Date: Sat, 9 Oct 2021 15:30:21 +0200 Subject: [PATCH] update --- Dockerfile | 5 +++-- sudoers | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 sudoers diff --git a/Dockerfile b/Dockerfile index 5315114..03b9a08 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/sudoers b/sudoers new file mode 100644 index 0000000..07fdede --- /dev/null +++ b/sudoers @@ -0,0 +1,2 @@ +root ALL=(ALL) ALL +archie ALL=(ALL) NOPASSWD: ALL