# Check if the user ncadmin exists, if not create it. This option for installs other then the pre-configured VM ret=false getent passwd $UNIXUSER >/dev/null 2>&1 && ret=true if $ret; then echo echo "User $UNIXUSER exists..." echo else adduser --gecos GECOS $UNIXUSER << EOF $UNIXPASS $UNIXPASS y EOF usermod -aG sudo $UNIXUSER echo echo "User $UNIXUSER created..." echo fi