shell program

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.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s