add Administrator to user adding

This commit is contained in:
Tobias Powalowski 2024-06-08 08:00:21 +02:00
parent 64b20e5417
commit 32c86cef31

View file

@ -178,7 +178,7 @@ _user_management() {
fi fi
_set_comment || break _set_comment || break
_prepare_password User || break _prepare_password User || break
if useradd -R "${_DESTDIR}" "${_ADMIN_ATTR}" -c "${_FN}" -m "${_USER}" &>"${_LOG}"; then if useradd -R "${_DESTDIR}" ${_ADMIN_ATTR} -c "${_FN}" -m "${_USER}" &>"${_LOG}"; then
_set_password _set_password
_dialog --title " Success " --no-mouse --infobox "User Account ${_USER} created succesfully." 3 60 _dialog --title " Success " --no-mouse --infobox "User Account ${_USER} created succesfully." 3 60
sleep 2 sleep 2