Hi, I just realized that I missed setting up the variable. export ES_JAVA_OPTS="-Des.path.conf=/etc/elasticsearch" and that is the reason for the error.
On Sat, Jun 13, 2015 at 3:13 PM, Deepak Subhramanian <deepak.subhraman...@gmail.com> wrote: > I am getting an error while adding users for shield . The issue seems > to relate to installation by packages in ubuntu box creates files in > /etc/elasticsearch/shield/* > > but bin/shield/esusers looking for files in > /usr/share/elasticsearch/config/shield/ > > > /usr/share/elasticsearch# bin/shield/esusers useradd es_admin -r admin > > Enter new password: > > Retype new password: > > Warning: The following roles [admin] are unknown. Make sure to add > them to the [/usr/share/elasticsearch/config/shield/roles.yml] file. > Nonetheless the user will still be associated with all specified roles > > ERROR: could not write file > [/usr/share/elasticsearch/config/shield/users], please check file > permissions > > I got a temp work around. > > cp /etc/elasticsearch/shield/* /usr/share/elasticsearch/config/shield/. > > Then once user is created I copied files back. > > cp /usr/share/elasticsearch/config/shield/us* /etc/elasticsearch/shield/. > > > > -- > Deepak Subhramanian -- Deepak Subhramanian -- Please update your bookmarks! We have moved to https://discuss.elastic.co/ --- You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CA%2BUubihfPMdDj6gz_VgqDvdO1voTPnxO9ktN7pjnujwPOWYtkw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.