add modify users

This commit is contained in:
Tobias Powalowski 2024-06-02 18:19:04 +02:00
parent 3d03f47433
commit b5e9720464

View file

@ -161,11 +161,11 @@ _user_management() {
# add normal users # add normal users
while true; do while true; do
_USERS="root Superuser $(grep 'x:10[0-9][0-9]' ${_DESTDIR}/etc/passwd | cut -d : -f 1,5 | sed -e 's: :#:g' | sed -e 's#:# #g')" _USERS="root Superuser $(grep 'x:10[0-9][0-9]' ${_DESTDIR}/etc/passwd | cut -d : -f 1,5 | sed -e 's: :#:g' | sed -e 's#:# #g')"
_dialog --no-cancel --menu " User Selection Menu " 15 40 10 ${_USERS} "<" "Return To Previous Menu" 2>"${_ANSWER}" || return 1 _dialog --no-cancel --menu " User Selection Menu " 15 40 10 ${_USERS} "< Back" "Return To Previous Menu" 2>"${_ANSWER}" || return 1
_USER=$(cat "${_ANSWER}") _USER=$(cat "${_ANSWER}")
if [[ "${_USER}" = "root" ]]; then if [[ "${_USER}" = "root" ]]; then
_set_password Root root _set_password Root root
elif [[ "${_USER}" = "<" ]]; then elif [[ "${_USER}" = "< Back" ]]; then
break break
else else
_dialog --title " Modify User ${_USER} " --no-cancel --menu "" 10 45 4 \ _dialog --title " Modify User ${_USER} " --no-cancel --menu "" 10 45 4 \