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.
| # | User | Rating |
|---|---|---|
| 1 | Kevin114514 | 3722 |
| 2 | Benq | 3676 |
| 3 | jiangly | 3640 |
| 4 | turmax | 3450 |
| 5 | tourist | 3408 |
| 6 | strapple | 3360 |
| 7 | Um_nik | 3354 |
| 8 | squareOf105 | 3348 |
| 9 | maroonrk | 3196 |
| 10 | idontwannadothis…e | 3191 |
| # | User | Contrib. |
|---|---|---|
| 1 | Qingyu | 153 |
| 2 | maroonrk | 152 |
| 3 | nik_exists | 151 |
| 4 | maspy | 149 |
| 5 | AmShZ | 147 |
| 6 | Um_nik | 144 |
| 7 | Errichto | 139 |
| 8 | adamant | 135 |
| 9 | BledDest | 134 |
| 10 | cry | 130 |
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,
show (+1)
#
|
|
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,
show (+1)
#
|
|
Kh.Madi
|
15 years ago,
hide
#
^
|
+8
sudo: ./a command not found
→
Reply
|
|
aropan
|
15 years ago,
show (+1)
#
|
aropan
|
15 years ago,
hide
#
^
|
-11
без двоеточия
→
Reply
|
|
Kh.Madi
|
15 years ago,
show
#
|
|
Kh.Madi
|
15 years ago,
hide
#
^
|
+16
Нет. Я то ввел без двоеточие. Это вывод
→
Reply
|
|
haas
|
15 years ago,
show (+1)
#
|
|
haas
|
15 years ago,
hide
#
|
+8
try 'chmod +x ./a'
→
Reply
|
|
freopen
|
15 years ago,
show
#
|
|
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
|
| Name |
|---|


