a customer asked me to create a menu for linux he also asked me to do this:
open like a command like where a user can execute commands...so for this the users have sudo enabled
the code below works OK.
But it has an issue when a command is executed but the command does not need sudo
like for instance
sudo: cd: command not found
how can I allow a user to execute all commands when a command does not need sudo
echo -e "Press Control+C to finish"
#echo -e " "
read whichcmd?"Insert Command: "
thanks a lot