Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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/" I get a "Permission denied".

I tried doing a chmod 755 on the 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!


share|improve this question
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 and

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/
share|improve this answer
Perfect - thanks! – Robert Hume Aug 30 '11 at 0:01

Your Answer


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.