shell Script should validate current logged user's password while running script

view story

http://stackoverflow.com – After run my script, i am giving my password as input to script. First script validates if my given password is correct and then script should start remaining process In my script. echo -n "Enter Password: " stty -echo read passwd stty echo #Here i want to evaluate $passwd having corresponding user's system password or not # <Then some process start> (HowTos)