bash: ./executablefile: Permission denied

Asked by YungUser

I type in
root@ubuntu:/home/meghan/Desktop/prac8hw3# ./prac8hw3

And then I get
-bash: ./prac8hw3: Permission denied

How do I solve this?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu bash Edit question
Assignee:
No assignee Edit question
Solved by:
YungUser
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

chmod +x ./prac8hw3; ./prac8hw3

Will run it. I don't suggest you work in your users $HOME as root, it may harm ownerships

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#2

chmod 700 ./prac8hw3
./prac8hw3

Please don't work always with root user, it is ok if you are installing...

Revision history for this message
YungUser (megi-vrooyen) said :
#3

Ok that helped,
will change the root,
Thank you :-)