It is very likely that you will not want to have the Geronimo server process under the super user root. The following are a serie of simple steps for changing the ownership and permission for the required files in order to run Geronimo with a different user.
- create a new user (i.e. gmo) and add it to a specifc user group. You could use the predefined www user group for instance.
- edited the .bashrc for the user you just created and add the PATH and JAVA_HOME variables:
PATH=$PATH:<java_home>/bin
export PATH
JAVA_HOME=<java_home>
export JAVA_HOME - changed the user group to all the subdirs in <geronimo_home>
- chown -R gmo:www <geronimo_home>/var
- created a deploy directory in <geronimo_home>/
- chmod -R 774 <geronimo_home>/deploy
- chmod -R 774 <geronimo_home>/bin
- chmod -R 774 <geronimo_home>/config-store
- login as gmo user
- cd <geronimo_home>/bin
- ./geronimo.sh run