Bash: permission denied
Jean Désiré
-
fuhefc -
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
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 answers
-
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 commandsudo chmod +x NomProg
and read this
http://doc.ubuntu-fr.org/permissions
http://doc.ubuntu-fr.org/droits-
-
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.
-