# Users - passwords - not getting it

**URL:** <https://forum.ansible.com/t/users-passwords-not-getting-it/15356>\
**Category:** Ansible Project\
**Created:** [May 28, 2014, 4:32pm UTC](https://forum.ansible.com/t/users-passwords-not-getting-it/15356 "2014-05-28T16:32:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brian\_Dunbar](https://avatars.discourse-cdn.com/v4/letter/b/4491bb/32.png) [@Brian\_Dunbar](https://forum.ansible.com/u/Brian_Dunbar)\
**Post date:** [May 28, 2014, 4:32pm UTC](https://forum.ansible.com/t/users-passwords-not-getting-it/15356/1 "2014-05-28T16:32:58Z")

</div>

I want to create an account, and a password. Then tell the user what that password is.

see here [https://gist.github.com/bdunbar/6b60d8a14e5ef2af8ebe](https://gist.github.com/bdunbar/6b60d8a14e5ef2af8ebe)

I have the same problem when I use this

shell: mkpasswd --method=SHA-512

The thing I’m not getting - and I’m sure this is a mental block, or a mis-understanding in something very basic - is ‘where is the password’?

I’ve got a crypted value, but I don’t know how to translate

“stdout”: “$6$JQtu3Wqyrv…KM$3MtcEkDzm5OJ2.3jWUb3Oy.opnu1NmxPJ72vX2Q7skAOggdwa0sto/wlinld7QaAqbcVUdxo6Fo/UtqekVt6L/”}

to

“logmein”

~brian

---

<div class="post-metadata">

**Author:** ![adam2](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@adam2](https://forum.ansible.com/u/adam2)\
**Post date:** [May 28, 2014, 5:21pm UTC](https://forum.ansible.com/t/users-passwords-not-getting-it/15356/2 "2014-05-28T17:21:26Z")

</div>

That runs mkpasswd with stdin unattached. If you run it manually, you'll see it prompting for a password. If you run it multiple times, and keep hitting enter(simulating a disconnected stdin), then you'll get different values each time. This is due to a random salt being used($6 is the type of hashing, then the second $$ is the salt).
