I've been researching this plenty on both askubuntu and unix&Linux but could not find a proper answer that works. I've already asked this question on askubuntu but one of the mods closed and marked it as duplicate of https://askubuntu.com/questions/94060/run-adduser-non-interactively but that did not solve my issue at all. The script below is what I have tried already but it still asked me for the user's password and other information when it ran. #!/bin/bashPASSWORD=somepasswordUSERNAME=defaultif id -u $USERNAME >/dev/null 2>&1; then    userdel -r -f $USERNAME    adduser --disabled-password --gecos  $USERNAME    usermod -a -G sudo $USERNAME    echo $USERNAME:$PASSWORD | chpasswdelse    adduser $USERNAME    adduser --disabled-password --gecos  $USERNAME     usermod -a -G sudo $USERNAME    echo $USERNAME:$PASSWORD | chpasswdfi
Need help creating a working bash script that auto creates admin users in linux
bash;shell script;debian;ubuntu;useradd