Users : Call grpck after edit
This commit is contained in:
parent
fa143b9b0e
commit
d7143c47c6
1 changed files with 2 additions and 0 deletions
|
@ -31,6 +31,7 @@ case $sel in
|
||||||
echo "Choose a password for $username :"
|
echo "Choose a password for $username :"
|
||||||
echo ""
|
echo ""
|
||||||
passwd $username
|
passwd $username
|
||||||
|
grpck
|
||||||
pressanykey
|
pressanykey
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
@ -38,6 +39,7 @@ case $sel in
|
||||||
username=$(whiptail --backtitle "$apptitle" --title "Delete User" --inputbox "Enter the user name to delete :" 0 0 3>&1 1>&2 2>&3)
|
username=$(whiptail --backtitle "$apptitle" --title "Delete User" --inputbox "Enter the user name to delete :" 0 0 3>&1 1>&2 2>&3)
|
||||||
if [ "$?" = "0" ]; then
|
if [ "$?" = "0" ]; then
|
||||||
userdel -r -f $username
|
userdel -r -f $username
|
||||||
|
grpck
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in a new issue