fix: NOPASSWD

This commit is contained in:
张泊明518370910136 2024-09-11 10:49:44 -04:00
parent 6238eda87a
commit 7cf853aa11
GPG Key ID: CA088E6D9284F870

View File

@ -8,7 +8,7 @@ RUN apt-get update && \
rm -rf /var/lib/apt/lists/* && \
useradd -u 1000 -ms /bin/bash tt && \
useradd -u 1001 -ms /bin/bash student && \
echo "student ALL=(tt) /usr/local/bin/joj3" > /etc/sudoers.d/joj
echo "student ALL=(tt) NOPASSWD:/usr/local/bin/joj3" > /etc/sudoers.d/joj
# install joint-teapot
# TODO: change it to FOCS gitea mirror for deployment