Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I download Apache James email server on my Mac. I extracted the zip to a "james-2.3.2" folder. When I run "./james-2.3.2/bin/run.sh" I get a "Permission denied".

I tried doing a chmod 755 on the run.sh but it still gives me an error (something about permission denied regarding a phoenix .sh file).

I expect I'm doing something fundamentally wrong. Any help is appreciated!

rob

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

You have to set chmod 755 for all the *.sh files in this directory. For that you could run

find ./james-2.3.2 -type f -name '*\.sh' -exec chmod +x {} \;

This command will look for files which end with .sh and sets the executable bit (okey, there are only two, the run.sh and phoenix.sh)

But you still have to set JAVA_HOME otherwise james will complain. And you have to run it as 'root' user since it the application will listen to a port < 1024. For me the following let me run james:

sudo JAVA_HOME=/Library/Java/Home ./james-2.3.2/bin/run.sh
share|improve this answer
    
Perfect - thanks! –  Robert Hume Aug 30 '11 at 0:01
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.