mirror of
https://github.com/remote-android/redroid-doc
synced 2026-11-27 07:05:22 +08:00
Skip password required for running sudo for automation
` && echo "$username ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers \`
This commit is contained in:
1 parent
120fa6b500
commit
22ef1077b9
1 file changed
+1
@@ -16,6 +16,7 @@ RUN curl -o /usr/local/bin/repo https://storage.googleapis.com/git-repo-download
|
|||||||
|
|
||||||
RUN groupadd -g $groupid $username \
|
RUN groupadd -g $groupid $username \
|
||||||
&& useradd -m -u $userid -g $groupid $username \
|
&& useradd -m -u $userid -g $groupid $username \
|
||||||
|
&& echo "$username ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers \
|
||||||
&& echo $username >/root/username \
|
&& echo $username >/root/username \
|
||||||
&& echo "$username:$username" | chpasswd && adduser $username sudo
|
&& echo "$username:$username" | chpasswd && adduser $username sudo
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user