Skip password required for running sudo for automation

` && echo "$username ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers \`
This commit is contained in:
sickcodes
2021-05-06 06:16:37 +00:00
committed by GitHub
parent 120fa6b500
commit 22ef1077b9

View File

@@ -16,6 +16,7 @@ RUN curl -o /usr/local/bin/repo https://storage.googleapis.com/git-repo-download
RUN groupadd -g $groupid $username \
&& useradd -m -u $userid -g $groupid $username \
&& echo "$username ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers \
&& echo $username >/root/username \
&& echo "$username:$username" | chpasswd && adduser $username sudo