# Is there an issue with \`sudo -k' ?

**URL:** <https://forum.ansible.com/t/is-there-an-issue-with-sudo-k/12138>\
**Category:** Ansible Project\
**Tags:** ubuntu\
**Created:** [December 14, 2012, 9:21am UTC](https://forum.ansible.com/t/is-there-an-issue-with-sudo-k/12138 "2012-12-14T09:21:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jpmens1](https://avatars.discourse-cdn.com/v4/letter/j/e9c0ed/32.png) [@jpmens1](https://forum.ansible.com/u/jpmens1)\
**Post date:** [December 14, 2012, 9:21am UTC](https://forum.ansible.com/t/is-there-an-issue-with-sudo-k/12138/1 "2012-12-14T09:21:21Z")

</div>

There was a report via Twitter yesterday [1] that said

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"Commands hang on ' /bin/sh -c sudo -k'. This is Ubuntu 10.04,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Ansible 0.9 from the PPA"

IIRC, this was dicussed somewhere not terribly long ago (Twitter, IRC,  
Github, mailing-list -- my memory fails me, and I can't find it.) It was  
due either to /bin/sh not being quite compatible or an issue with the  
'-k' switch to sudo.

Can anybody help Paul? Is there a problem and/or a solution?

Thanks,

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-JP

[1] [https://twitter.com/PaulNendick/status/279193803733225472](https://twitter.com/PaulNendick/status/279193803733225472)
