Search code examples
javaunixpermissions

What are the minimum unix permissions to run an executable jar file?


If I have a jar that I need to run using java -jar FOO.jar on unix, does this depend on the read, write or execute bit? Or some combination thereof?


Solution

  • You just need read on the .jar, since java is what you're executing, and it reads the jar.