Fix user creation

This commit is contained in:
2025-02-03 06:30:01 -03:00
parent 782452c375
commit cfed9f4fc0
2 changed files with 9 additions and 2 deletions

View File

@@ -3,7 +3,10 @@
function create_user() {
username=$1
echo "[ USER ]: Starting user setup"
home_dir="/home/$username"
echo "[ USER ]: Starting user $username setup"
mkdir -p $home_dir
sudo useradd $username
echo "[ USER ]: Set a password for $username:"
sudo passwd "$username"