Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 946
chotchki Avatar asked Apr 19 '10 15:04

chotchki


People also ask

Do JAR files need execute permission?

You will need read , since the jar is virtually executed by java (of course java needs to have exec permissions).

How do I give permission to a JAR file?

install_jar( ) installs a JAR file in the database and declares a JAR ID for the file, Informix® can access that JAR file only if the user who installed the Informix instance (typically, user 'informix') has permission to read the directory where the JAR file resides.


1 Answers

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

like image 200
Shizzmo Avatar answered Oct 05 '22 22:10

Shizzmo