linux create user with password code example
Example 1: how to make new user linux termil
sudo useradd -m username
#set user password
sudo passwd username
#add user to sudoers [DANGEROUS]
usermod -aG sudo username
Example 2: generate password linux
password=$(openssl rand -base64 32)
echo $password
Example 3: linux create user
sudo useradd username
Example 4: linux create user with homedir
useradd -m $username