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.
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.
|
pratikmoona
|
15 years ago,
hide
#
|
0
ehm... try running it as sudo ./a
it will prompt you for your password. Does this work?
→
Reply
|
|
Kh.Madi
|
15 years ago,
hide
#
^
|
+8
sudo: ./a command not found
→
Reply
|
aropan
|
15 years ago,
hide
#
^
|
-11
без двоеточия
→
Reply
|
|
Kh.Madi
|
15 years ago,
hide
#
^
|
+16
Нет. Я то ввел без двоеточие. Это вывод
→
Reply
|
|
haas
|
15 years ago,
hide
#
|
+8
try 'chmod +x ./a'
→
Reply
|
|
freopen
|
15 years ago,
hide
#
^
|
+4
The main problem is that 'a' file is located on NTFS section, and chmod +x haven't any sence for this FS.
→
Reply
|