Fix Guest acct

This commit is contained in:
Elizabeth Cray committed 2026-10-24 17:39:13 -04:00
1 parent 484fdcf94d
commit 662b519193
1 file changed
+10 -6
+10 -6
View File
@@ -15,6 +15,9 @@ if [ "$(id -u)" -ne 0 ]; then
exit 1 exit 1
fi fi
#Default repo hits load balancer backend error, so we manually replace it
sed -i 's/http:\/\/http\.kali\.org\/kali/https:\/\/kali.mirror.rafal.ca\/kali/g'
export DEBIAN_FRONTEND=noninteractive export DEBIAN_FRONTEND=noninteractive
export NEEDRESTART_MODE=a export NEEDRESTART_MODE=a
@@ -39,12 +42,13 @@ usermod -aG classroom hacdc
useradd -m -s /usr/bin/zsh -G dialout,cdrom,floppy,audio,video,wireshark,classroom guest useradd -m -s /usr/bin/zsh -G dialout,cdrom,floppy,audio,video,wireshark,classroom guest
cp /home/hacdc/.zshrc /home/guest/.zshrc cp /home/hacdc/.zshrc /home/guest/.zshrc
chown guest:guest /home/guest/.zshrc chown guest:guest /home/guest/.zshrc
# TODO: SET GUEST PW echo "guest:h4cdch4cdch4cdc" | chpasswd
sudo -u hacdc curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.8/install.sh | bash # TODO: fix this to actually run as each user
sudo -u hacdc curl -fsSL https://pyenv.run | bash # sudo -u hacdc curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.8/install.sh | bash
# sudo -u hacdc curl -fsSL https://pyenv.run | bash
sudo -u guest curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.8/install.sh | bash #
sudo -u guest curl -fsSL https://pyenv.run | bash # sudo -u guest curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.8/install.sh | bash
# sudo -u guest curl -fsSL https://pyenv.run | bash
# Generate GPG framework # Generate GPG framework
sudo -u hacdc gpg --list-keys sudo -u hacdc gpg --list-keys