I'm glad you were able to fix this issue. I have a few questions that may 
help us ensure this fix is pulled back into Shield. What OS and Shell are 
you using? Which line in the script did you change exactly? I'm looking at 
the script right now and I don't see any instance of "done:"

Just an FYI, there is another way to handle the configuration directory 
issue that is documented in the configuring your environment section of the 
shield guide:
http://www.elastic.co/guide/en/shield/current/getting-started.html#_configuring_your_environment

On Wednesday, April 1, 2015 at 2:07:28 PM UTC-4, BEN SALEM Omar wrote:
>
> Ok, I've managed to solve my own problem.
>
> First of all things, if you want to just remove the shield plugin run 
> under the elasticsearch :
>
> $ bin/plugin --remove shield
>
> Now, to the syntax error in the elef line in the "esusers", generally, 
> when there is such an error, it's related to things before that line.
> In fact there was something like this : 
> $....done: 
> correction : 
> $....done;
>
> Now, we could add users within shield and grunt them the desired role.
>
> But, even if I've done it, I couldn't access to my ES cluster with the 
> "new born user"; I think because my ES is running as a service and not 
> starting with bin/elasticsearch, that lead to "misunderstanding."
>
> The solution I found was to transfer the 
> /usr/share/elasticsearch/config/shield under /etc/elasticsearch
> $ln -s /usr/share/elasticsearch/config/shield/ /etc/elasticsearch
>
> And that was it ! 
> Hope that could be of a help for anyone else facing the same problem !
>
> On Wednesday, April 1, 2015 at 5:28:14 PM UTC+2, BEN SALEM Omar wrote:
>>
>> I wanted to add authentication to my ES, thus I downloaded the shield :
>> https://www.elastic.co/downloads/shield
>>
>> Then I've tried to add a user to give him the admin role as it's 
>> mentionned here :
>> http://www.elastic.co/guide/en/shield/current/getting-started.html
>> (I've added it with root, cause I start my es with root..)
>>
>> But when I try to do so, an error occure saying that there is a syntax 
>> error in the 38 line "the elef line" 
>> elef[$ES_INCLUDE] bla bla
>> I've tried many time : 
>> bin/shield/esusers useradd omar -p omar -r admin
>> bin/shield/esusers useradd esomar -p omar -r admin
>> bin/shield/esusers useradd es_omar -p omar -r admin
>> bin/shield/esusers useradd ES_omar -p omar -r admin
>> bin/shield/esusers useradd omar  -r admin
>> bin/shield/esusers useradd esomar  -r admin
>> bin/shield/esusers useradd es_omar  -r admin
>> bin/shield/esusers useradd ES_omar  -r admin
>>
>> But the same error kept on jumping ! 
>>
>> I said enough is enough and wanted to keep on doing wwhat I was doing, 
>> tried to run Kibana, and this is what happened !
>>
>>
>> I've then tried to open my ES marvel plugin, but there is now an 
>> authentication box 
>>
>>
>> ​
>> I've tried ALL the combinations above, but none of them seemed to work !!
>>
>> I'm really preoccupied by this note : 
>> To ensure that Elasticsearch can read the user and role information at 
>> startup, run esusers useradd as the same user you use to run 
>> Elasticsearch. Running the command as root or some other user will update 
>> the permissions for the users and users_roles files and prevent 
>> Elasticsearch from accessing them.
>>
>> The thing is that I start my es and kibana with the root..
>> Please HELP !! 
>> ᐧ
>>
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/9f0ebe63-cc83-4c0b-8ee9-1514e51f77f6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to