today i have started to execute my first bash program, but it said that permission denied. I was a kinda startled as i am owner of the file and i thought i will have all the rights. I trashed al those thoughts tried to get some help from root. But he got the same issue. then i thought that may be the file is not executable yet. but it is not technically true as shell scripts run by interpreters but not by compilers. So after a little bit of internet search I found that we have to assign executable permission to the program to gain the ability to execute it.
chmod +x filelocation
this will give you rights to execute it.