Jump to content



How to: Make a file Executable on Linux - ./somefile: Permission denied


  • Please log in to reply
No replies to this topic

#1 Wilson18



  • root
  • 112 posts
  • LocationUniversity of Birmingham

Posted 08 May 2015 - 06:32 PM

If you have create a new file which you would like to execute, you may get the following error if you try and use it 


-bash: ./somefile: Permission denied
To fix this, you will need to make it executable. You can do it like this
chmod +x somefile

This should now work! 


List what you read?

Check me out on: YouTube, Twitter, Facebook, Google+

Also tagged with one or more of these keywords: Linux