File tree Expand file tree Collapse file tree 4 files changed +24
-1
lines changed Expand file tree Collapse file tree 4 files changed +24
-1
lines changed Original file line number Diff line number Diff line change 1+ echo " Enable and start <ssh> in systemctl"
2+ sudo systemctl enable ssh
3+ sudo systemctl start ssh
4+
5+ echo " Enable firewall"
6+ sudo ufw enable
7+ sudo ufw allow ssh
Original file line number Diff line number Diff line change 1+ source vars.sh
2+
3+ cd $ADMIN_SCRIPTS_DIR
4+
5+ homedir=" /home/$ADMIN_USER "
6+ for file in * ; do
7+ cp -rv $file " $homedir /"
8+ chown -R -c -v $user :$user " $homedir /$file "
9+ chmod -R -v 750 " $homedir /$file "
10+ done
11+
12+ cd -
Original file line number Diff line number Diff line change @@ -6,3 +6,4 @@ openssh_server.sh
66dist_upgrade.sh
77add_users.sh
88copy_dots.sh
9+ copy_admin_scripts.sh
Original file line number Diff line number Diff line change 1+ DOTS_DIR=" dots"
2+ SCRIPTS_DIR=" scripts"
3+ ADMIN_SCRIPTS_DIR=" adm"
4+
15ADMIN_USER=" admin"
26ADMIN_PASSWORD=' $1$qOaJpMTn$udSLvrlWWiT43He1M2wy5.'
37# encrypted with $(openssl passwd -1 PLAINTEXTPASSWORD)
@@ -6,4 +10,3 @@ TEAM_USER="contestant"
610TEAM_PASSWORD=' $1$92hYmWFk$qPeMP85ThFuzlKbdgh3cu0'
711# encrypted with $(openssl passwd -1 PLAINTEXTPASSWORD)
812
9- DOTS_DIR=" dots"
You can’t perform that action at this time.
0 commit comments