Add docs + .sh files

This commit is contained in:
2024-08-07 06:44:52 +00:00
parent f7917ed781
commit 0786dafbf0
5 changed files with 131 additions and 36 deletions

17
create_user.sh Normal file
View File

@@ -0,0 +1,17 @@
#!/bin/bash
function create_user() {
read -p "Enter username: " username
sudo useradd -m -d /home/$username $username
sudo usermod -aG sudo $username
sudo mkdir -p /var/www/apps /var/www/static
echo "User $username created with sudo privileges"
echo "Apps directory created: /var/www/apps/"
echo "Static files directory: /var/www/static"
echo "Next step: Create SSH keys. Refer to: [link to SSH key creation guide]"
}
create_user