Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The following tasks should be performed while logged in as root or a user with enough access rights.

  1. create Create a new user (i.e. gmo) and add it to a specific user group. You could use the predefined www user group for instance.
  2. edit Edit the .bashrc for the user you just created and add the PATH and JAVA_HOME variables:
    Code Block
    
        PATH=$PATH:<java_home>/bin

    
        export PATH

    
        JAVA_HOME=<java_home>

    
        export JAVA_HOME
    
  3. change Change the user group to all the subdirs in <geronimo_home>
    No Format
    BorderStyleSolid
    
    chown -R root:www <geronimo_home>
    
  4. create Create a deploy directory within the <geronimo_home> directory structure.
  5. change Change the access permissions to the following directories
    No Format
    BorderStyleSolid
    
        chmod -R 774 <geronimo_home>/bin

    
        chmod -R 774 <geronimo_home>/deploy

    
        chmod -R 774 <geronimo_home>/repository

    
        chmod -R 774 <geronimo_home>/var
    
  6. login Login as the new user (i.e. gmo)
  7. Start the server
    No Format
    BorderStyleSolid
    
    cd <geronimo_home>/bin
    
    ./geronimo.sh run 
    

You are now able to run and deploy applications with a user other than root.