passworsd for ksh script

i have a script "search file" .its a ksh script....
how to password protect it..........

as soon as i give the command
./search file

it should ask for the password say as username and password........then after entering the correct username and password,it should execute

can anybody help me...........

use the "stty" command .

i m not so aware of unix commands.....

can u just tell me how to use this command in this case with an example.

i would appreciate ur help