Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
Wiki Markup
{scrollbar}
{red-box}text{red-box}

It is very likely that you will not want to have the Geronimo server process under the super user root. The following are a series of simple steps for changing the ownership and permissions for the required files in order to run Geronimo with a different user.

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

# 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.
# edit the .bashrc for the user you just created and add the PATH and JAVA_HOME variables:
    {{

It is very likely that you will not want to have the Geronimo server process under the super user root. The following are a series of simple steps for changing the ownership and permissions for the required files in order to run Geronimo with a different user.

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

  1. 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 the .bashrc for the user you just created and add the PATH and JAVA_HOME variables:
    PATH=$PATH:<java_home>/bin

...


  1. export PATH
    JAVA_HOME=<java_home>

...


  1. export JAVA_HOME

...

  1. change

...

  1. the

...

  1. user

...

  1. group

...

  1. to

...

  1. all

...

  1. the

...

  1. subdirs

...

  1. in

...

  1. <geronimo_home>

...


  1. chown -R

...

  1. root:www

...

  1. <geronimo_home>

...

  1. create

...

  1. a

...

  1. deploy

...

  1. directory

...

  1. within

...

  1. the

...

  1. <geronimo_home>

...

  1. directory

...

  1. structure.

...

  1. change

...

  1. the

...

  1. access

...

  1. permissions

...

  1. to

...

  1. the

...

  1. following

...

  1. directories
    chmod -R

...

  1. 774

...

  1. <geronimo_home>/bin

...


  1. chmod -R

...

  1. 774

...

  1. <geronimo_home>/deploy

...


  1. chmod -R

...

  1. 774

...

  1. <geronimo_home>/repository

...


  1. chmod -R

...

  1. 774

...

  1. <geronimo_home>/var

...

  1. login

...

  1. as

...

  1. the

...

  1. new

...

  1. user

...

  1. (i.e.

...

  1. gmo)

...

  1. cd

...

  1. <geronimo_home>/bin

...

  1. ./geronimo.sh

...

  1. run

...

You

...

are

...

now

...

able

...

to

...

run

...

and

...

deploy

...

applications

...

with

...

a

...

user

...

other

...

than

...

root.