Skip to content
Advertisement

Running jre keytool results in the Permission Denied error

I have a script running the command:

JavaScript

Got the error:

JavaScript

Checked all permission on the directories and keytool – all are executable.

I am at RHEL-7

Advertisement

Answer

A lot of Distributions do not allow files to be executed from within the /tmp directory.

Either move the jre out of /tmp (why is it even in there?) or make it executable via:

sudo mount -o remount,exec /tmp

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement