Skip to content

Commit

Permalink
back to pass
Browse files Browse the repository at this point in the history
  • Loading branch information
mchyzer committed Nov 8, 2023
1 parent 379bf75 commit 0be5429
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions internal/mkstudent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ docker pull "tier/gte:401.end-$GROUPER_GTE_DOCKER_BRANCH"
MY_IP=$(curl icanhazip.com)

# Generate a password
#PASS=$(od -An -N32 -i /dev/random | md5sum | cut -c1-8)
PASS=Gmg86m3ZYalbiaohvaTZ
PASS=$(od -An -N32 -i /dev/random | md5sum | cut -c1-8)
#PASS=Gmg86m3ZYalbiaohvaTZ
#ENCRYPTED_PASS=$(perl -e 'print crypt($ARGV[0], "password")' $PASS)

groupadd -g 1002 student
Expand All @@ -49,8 +49,8 @@ usermod -G wheel,docker student
echo '%wheel ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/99wheel

sed -i "s|PasswordAuthentication no|PasswordAuthentication yes|g" /etc/ssh/sshd_config
sed -i "s|ChallengeResponseAuthentication no|ChallengeResponseAuthentication yes|g" /etc/ssh/sshd_config
sed -i "s|#ChallengeResponseAuthentication no|ChallengeResponseAuthentication yes|g" /etc/ssh/sshd_config
#sed -i "s|ChallengeResponseAuthentication no|ChallengeResponseAuthentication yes|g" /etc/ssh/sshd_config
#sed -i "s|#ChallengeResponseAuthentication no|ChallengeResponseAuthentication yes|g" /etc/ssh/sshd_config

systemctl restart sshd.service

Expand Down Expand Up @@ -78,3 +78,4 @@ updatedb
# Echo the IP and password with no whitespace so it doesnt wrap
echo "abcdefg12345678,$MY_IP,$PASS,"

#pip3 install urllib3==1.26.6

0 comments on commit 0be5429

Please sign in to comment.