Bash: permission denied

Jean Désiré -  
 fuhefc -
Hello, my name is Jean Désiré

I have the Linux Ubuntu OS, and for the past two days, I have been unable to run my programs. There is no issue with compilation, but when I try to execute them, I get this message: "bash: permission denied"
I switch to root and still get the same result. Any help would be welcome. Thank you

Configuration: Windows 7 / Safari 534.10

2 réponses

DrNitro Posted messages 733 Status Membre 99
 
Normally, just after compilation, a
/NomProg
is enough to execute the program
but if not, think about allowing the execution of this program file
either right-click -> properties -> permissions -> check the box "make this file executable" (or something like that)
or by using the chmod command
sudo chmod +x NomProg


and read this
http://doc.ubuntu-fr.org/permissions
http://doc.ubuntu-fr.org/droits
8
jean désiré
 
Le problème persiste, je pense que je ferais mieux de vous donner le programme et que vous l'exécutiez chez vous pour voir ce que ça donne. Merci.
0
Anonymous user
 
Hi,

Take the time to check if he has execution rights.

Otherwise, you can always share your program or its sources to see if someone can do something with it, but I believe it's a problem with execution rights.

Catch you later :- )

Edit: Also check if you are the owner of the file, because if you tried to run it as root, that might have changed the owner.
0