feat: add tt to student group

This commit is contained in:
张泊明518370910136 2024-09-12 19:36:48 -04:00
parent 0a2e42ae7b
commit 98867527dc
GPG Key ID: CA088E6D9284F870

View File

@ -9,6 +9,7 @@ RUN apt-get update && \
userdel -r node && \
useradd -u 1000 -ms /bin/bash tt && \
useradd -u 1001 -ms /bin/bash student && \
usermod -aG student tt && \
echo "student ALL=(tt) NOPASSWD:/usr/local/bin/joj3\nstudent ALL=(tt) NOPASSWD:/usr/local/bin/joj3-teapot" > /etc/sudoers.d/joj
# install joint-teapot