feat: remove node user
This commit is contained in:
parent
7314fab72d
commit
5487cf7c13
|
@ -6,6 +6,7 @@ RUN apt-get update && \
|
||||||
apt-get install -y sudo python3 python3-pip && \
|
apt-get install -y sudo python3 python3-pip && \
|
||||||
apt-get clean && \
|
apt-get clean && \
|
||||||
rm -rf /var/lib/apt/lists/* && \
|
rm -rf /var/lib/apt/lists/* && \
|
||||||
|
userdel -r node && \
|
||||||
useradd -u 1000 -ms /bin/bash tt && \
|
useradd -u 1000 -ms /bin/bash tt && \
|
||||||
useradd -u 1001 -ms /bin/bash student && \
|
useradd -u 1001 -ms /bin/bash student && \
|
||||||
echo "student ALL=(tt) NOPASSWD:/usr/local/bin/joj3" > /etc/sudoers.d/joj
|
echo "student ALL=(tt) NOPASSWD:/usr/local/bin/joj3" > /etc/sudoers.d/joj
|
||||||
|
|
Loading…
Reference in New Issue
Block a user