I have managed to write this code. It runs, but no change was made to the user's info. It seems like
usermod
isn't working. What I am wanting to do is, to be able to edit existing user's info in the system?
printf "\nEnter user name to edit: "
read -r usermod
[ -n $usermod ] && usermod $usermod
unset usermod
echo " A user name has been edited"
Asked by Mukunda Paudel
(1 rep)
Apr 11, 2020, 02:55 PM
Last activity: Apr 11, 2020, 05:03 PM
Last activity: Apr 11, 2020, 05:03 PM