Please read the new rule regarding the restriction on the use of AI tools. ×

Kh.Madi's blog

By Kh.Madi, 13 years ago, translation, In English

I'm new on Ubuntu. When I want to run my program, the "Permission denied" message appears. Who knows why? Help please. I wrote a+b program in c++. And compiled like "g++ a.cpp -o a". Then, I wrote in terminal ./a.

  • Vote: I like it
  • -5
  • Vote: I do not like it

| Write comment?
13 years ago, # |
  Vote: I like it 0 Vote: I do not like it
ehm... try running it as sudo ./a
it will prompt you for your password. Does this work?
13 years ago, # |
  Vote: I like it +8 Vote: I do not like it
try 'chmod +x ./a'
  • 13 years ago, # ^ |
      Vote: I like it +4 Vote: I do not like it
    The main problem is that 'a' file is located on NTFS section, and chmod +x haven't any sence for this FS.