fix: Location Skip In User Changes

Updated some places where root was still used and some missing sudo's
needed to be prefixed.
This commit is contained in:
Khalifah Shabazz
2025-06-08 18:21:10 -04:00
parent c494223545
commit 59c6fd25a5
3 changed files with 10 additions and 10 deletions

View File

@@ -7,14 +7,14 @@
# commands.
# Set the root user password
echo -e "vagrant\nvagrant" | passwd root
echo -e "vagrant\nvagrant" | sudo passwd root
# unlock the root user
passwd -u root
sudo passwd -u root
# Enable root SSH login
sed -i 's/^#*PermitRootLogin.*/PermitRootLogin yes/' /etc/ssh/sshd_config
sudo sed -i 's/^#*PermitRootLogin.*/PermitRootLogin yes/' /etc/ssh/sshd_config
systemctl restart sshd
sudo systemctl restart sshd
echo "root account setup script done"