11 Vote

Linux: Program is not executed - Permission denied

Question by Guest | 2018-01-21 at 21:59

I got a Linux application from a colleague. I saved it on my desktop and double-clicked the icon to run it. But it happened - unfortunately - nothing.

Then, I tried it using the command line with "./ProgramName". But there, I always get only the error message: "Permission Denied", which probably means access denied.

What can I do to get the program running?

ReplyPositiveNegative
1Best Answer1 Vote

The file must be marked as executable. Otherwise, Linux does not know what to do with the file.

For this, you go into the folder in which the program is located with the terminal and execute the following command:

sudo chmod +x ProgramName

Then you have to enter your password and the program should be executable.

Apart from that, you can also go via the properties dialog of the file (right click the file) and check the corresponding option therein.

Learn more about how to mark a program as executable and what chmod + x means.
Last update on 2022-11-19 | Created on 2018-01-22

ReplyPositive Negative
Reply

Related Topics

Important Note

Please note: The contributions published on askingbox.com are contributions of users and should not substitute professional advice. They are not verified by independents and do not necessarily reflect the opinion of askingbox.com. Learn more.

Participate

Ask your own question or write your own article on askingbox.com. That’s how it’s done.