0

I cannot execute any files that I have already created nor new ones. I keep receiving the message of "Permission Denied". Has anyone run into this problem/can some one help?

enter image description here

2
  • May be this could help link – sinister Aug 9 '14 at 3:18
  • How was the practice file created? There doesn't seem to be any source code for it which is why make cannot do anything. What happens when you run make hello followed by ./hello? – Luke Van In Aug 9 '14 at 21:04
5

You wrongly named your file, before issuing make command with your file you named practice, rename it to practice.c then compile and run it. Here are the steps you need to follow

  1. rename the file using the command mv practice practice.c

  2. compile your program by issuing the command make practice

  3. finally run it by issuing the command ./practice in case it compiled without errors.

2

Try executing the following command in the terminal to change the permissions for filename

chmod 700 filename
1
  • Solved that problem! Thank you! – user10152 Nov 9 '15 at 20:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .