Hello All,
I need to accept a password from the user and validate it, without having to hard-code it anywhere. Any ideas?
Hello All,
I need to accept a password from the user and validate it, without having to hard-code it anywhere. Any ideas?
thanks, but i am already using that to accept the password. What i want is to validate the password after it is entered, to check if its correct or not.
Use an if-else condition.
if [ $pswd == "blahblah" ]
then
<go_ahead>
else
echo "password not correct. exiting"
exit
fi