So i’m installing Coldfusion 8 for Adobe on some of their Redhat 4 servers and came across this nasty bug:

./Coldfusion-8-lin.bin: line 2479: /tmp/install.dir.31880/Linux/resource/jre/bin/java: Permission denied
./Coldfusion-8-lin.bin: line 2479: /tmp/install.dir.31880/Linux/resource/jre/bin/java: Success

So I go into /tmp and try to execute the java command. No luck. For some reason I think to copy the entire dir into my home directory to give it a try. It works. I did a grep on the Coldfusion-8-lin.bin file and found these lines:

if [ $IATEMPDIR ]; then
INSTBASE=$IATEMPDIR
if [ $LAX_DEBUG ]; then
echo “Forcing install base (including tmp dir) to: $IATEMPDIR”

So I did a `export IATEMPDIR=/home/dwang/tmp` and created the tmp dir in my home directory. Booya! It worked.

Strange error. I saw a couple of people having the same error. Hopefully this can help you guys out

Update:The wonderful guys at Rackspace said that the server /tmp directories are mounted with a noexec as a security precaution: To fix that :

mount -o remount,exec /tmp/

then execute the script again, then change it back to noexec:

mount -o remount,noexec /tmp/