Running as non-root user: Service wrapper has changed

Hi all

Just to let you know that if you are using the service wrapper and
running elasticsearch as a non-root user, eg using the instructions on
http://www.elasticsearch.org/tutorials/2011/02/22/running-elasticsearch-as-a-non-root-user.html
then you need to make a change to your user.

The new version of the service wrapper now requires your elasticsearch
user to have a shell specified.

Previously, the tutorial above said to create your user as:

useradd -d $ES_HOME elasticsearch

This creates the user with the shell set to /bin/false.

I've now changed this to:

useradd -d $ES_HOME -s /bin/sh elasticsearch

You can change this for an existing user with:

usermod -s /bin/bash elasticsearch

clint

Thanks Clint for the update.

David

-----Message d'origine-----
De : elasticsearch@googlegroups.com
[mailto:elasticsearch@googlegroups.com] De la part de Clinton Gormley
Envoyé : vendredi 25 mai 2012 13:57
À : elasticsearch@googlegroups.com
Objet : Running as non-root user: Service wrapper has changed

Hi all

Just to let you know that if you are using the service wrapper and
running elasticsearch as a non-root user, eg using the instructions on
Elasticsearch Platform — Find real-time answers at scale | Elastic
elasticsearch-as-a-non-root-user.html
then you need to make a change to your user.

The new version of the service wrapper now requires your elasticsearch
user to have a shell specified.

Previously, the tutorial above said to create your user as:

useradd -d $ES_HOME elasticsearch

This creates the user with the shell set to /bin/false.

I've now changed this to:

useradd -d $ES_HOME -s /bin/sh elasticsearch

You can change this for an existing user with:

usermod -s /bin/bash elasticsearch

clint