# Not prompting for password?!

**URL:** <https://discuss.elastic.co/t/not-prompting-for-password/36105>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [December 1, 2015, 10:39pm UTC](https://discuss.elastic.co/t/not-prompting-for-password/36105 "2015-12-01T22:39:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jjdepaul](https://avatars.discourse-cdn.com/v4/letter/j/e0b2c6/32.png) [@jjdepaul](https://discuss.elastic.co/u/jjdepaul)\
**Post date:** [December 1, 2015, 10:39pm UTC](https://discuss.elastic.co/t/not-prompting-for-password/36105/1 "2015-12-01T22:39:17Z")

</div>

I have ES 2.0 and latest Shield that I downloaded today (12/01/15) - not sure how to tell which version I have.

My curl tool version is as follows:  
curl 7.40.0 (x86\_64-pc-win32) libcurl/7.40.0 OpenSSL/1.0.1g zlib/1.2.8 WinIDN libssh2/1.4.3\_DEV  
Protocols: dict file ftp ftps gopher http https imap imaps ldap pop3 pop3s rtsp scp sftp smtp smtps telnet tftp  
Features: AsynchDNS IDN IPv6 Largefile SSPI Kerberos SPNEGO NTLM SSL libz

I have just added es\_admin admin user per instructions and I can run the basic commands against the ES engine using curl, but I have to specify the userid:password in the command, if I don't the command just hangs there waiting and no matter what I put in there it just sits there waiting.... what am I missing?!

```
jjdepaul@myhost /cygdrive/c/elasticsearch-2.0.0/bin/shield
$ curl -u es_admin -XGET localhost:9200/_shield

```

The cursor sits just below the cmd on an empty line and takes input characters that I type, but entering a pwd in there doesn't seem to make it work...

Only this version of the cmd will work for me:

> jjdepaul@myhost /cygdrive/c/elasticsearch-2.0.0/bin/shield  
> $ curl -u es\_admin:pa$$word -XGET localhost:9200/\_shield

---

<div class="post-metadata">

**Author:** ![jaymode](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jaymode/32/50103_2.png) [@jaymode](https://discuss.elastic.co/u/jaymode)\
**Post date:** [December 2, 2015, 11:00am UTC](https://discuss.elastic.co/t/not-prompting-for-password/36105/2 "2015-12-02T11:00:13Z")

</div>

Can you try using `curl -v` to output additional information to see what is happening? Also, do you have the same issue in a different client such as a web browser?

---

<div class="post-metadata">

**Author:** ![jjdepaul](https://avatars.discourse-cdn.com/v4/letter/j/e0b2c6/32.png) [@jjdepaul](https://discuss.elastic.co/u/jjdepaul)\
**Post date:** [December 2, 2015, 4:39pm UTC](https://discuss.elastic.co/t/not-prompting-for-password/36105/3 "2015-12-02T16:39:33Z")

</div>

I tried -v in curl command and it made no difference.... and it works in DOS shell using curl command and it works in the browswer using RESTclient Add on for FF - just like it should.

I'm thinking that maybe it's the cygwin issue!?

---

<div class="post-metadata">

**Author:** ![jaymode](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jaymode/32/50103_2.png) [@jaymode](https://discuss.elastic.co/u/jaymode)\
**Post date:** [December 2, 2015, 4:57pm UTC](https://discuss.elastic.co/t/not-prompting-for-password/36105/4 "2015-12-02T16:57:04Z")

</div>

> [@jjdepaul](#):
>
> I'm thinking that maybe it's the cygwin issue!?

That is what I am thinking as well

---

<div class="post-metadata">

**Author:** ![jjdepaul](https://avatars.discourse-cdn.com/v4/letter/j/e0b2c6/32.png) [@jjdepaul](https://discuss.elastic.co/u/jjdepaul)\
**Post date:** [December 2, 2015, 5:08pm UTC](https://discuss.elastic.co/t/not-prompting-for-password/36105/5 "2015-12-02T17:08:05Z")

</div>

I have a work-around, so no biggie. If you need to close this, go ahead. Thx -

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 1:47pm UTC](https://discuss.elastic.co/t/not-prompting-for-password/36105/6 "2017-07-06T13:47:36Z")

</div>

Closed on July 6, 2017, 1:47pm UTC


