# Questions about sudo password accepted with -K argument

**URL:** <https://forum.ansible.com/t/questions-about-sudo-password-accepted-with-k-argument/20882>\
**Category:** Ansible Project\
**Created:** [March 16, 2016, 7:37am UTC](https://forum.ansible.com/t/questions-about-sudo-password-accepted-with-k-argument/20882 "2016-03-16T07:37:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_Leo\_Huetter](https://avatars.discourse-cdn.com/v4/letter/j/6f9a4e/32.png) [@John\_Leo\_Huetter](https://forum.ansible.com/u/John_Leo_Huetter)\
**Post date:** [March 16, 2016, 7:37am UTC](https://forum.ansible.com/t/questions-about-sudo-password-accepted-with-k-argument/20882/1 "2016-03-16T07:37:54Z")

</div>

Hello Ansible experts:

Can you please let me know what is done with the password accepted with the -K argument.

Is it in memory only, in a file in /tmp ?

Is it encrypted? If so, how specifically.

Is it available anywhere on the file system for a snooper to see?

Is it deleted after the command is finished?

If the ansible playbook execution is killed halfway through via kill -9, is this password left out on the file system anywhere?

I tried running with strace and lsof and snooping around. I should not be able to find it, right?

John

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [March 17, 2016, 12:19am UTC](https://forum.ansible.com/t/questions-about-sudo-password-accepted-with-k-argument/20882/2 "2016-03-17T00:19:29Z")

</div>

It is in memory until the playbook end, it gets passed to remote hosts under the connection (which is encrypted) when prompted for.

It should not be written to disk in any circumstance

---

<div class="post-metadata">

**Author:** ![John\_Leo\_Huetter](https://avatars.discourse-cdn.com/v4/letter/j/6f9a4e/32.png) [@John\_Leo\_Huetter](https://forum.ansible.com/u/John_Leo_Huetter)\
**Post date:** [March 17, 2016, 12:27am UTC](https://forum.ansible.com/t/questions-about-sudo-password-accepted-with-k-argument/20882/3 "2016-03-17T00:27:46Z")

</div>

Thanks!
