# become\_user with prompt

**URL:** <https://forum.ansible.com/t/become-user-with-prompt/34764>\
**Category:** Ansible Project\
**Created:** [March 11, 2021, 5:16pm UTC](https://forum.ansible.com/t/become-user-with-prompt/34764 "2021-03-11T17:16:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alejandro\_Larzabal](https://avatars.discourse-cdn.com/v4/letter/a/e47774/32.png) [@Alejandro\_Larzabal](https://forum.ansible.com/u/Alejandro_Larzabal)\
**Post date:** [March 11, 2021, 5:16pm UTC](https://forum.ansible.com/t/become-user-with-prompt/34764/1 "2021-03-11T17:16:57Z")

</div>

Hello,

How can I respond to a user prompt that happens upon authentication?

Like ‘expect’ enables us to respond to command prompts, but the prompt in question happens when the user logs in, not after a command.

Does ansible support that?

Thanks,

Alex.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [March 12, 2021, 7:47pm UTC](https://forum.ansible.com/t/become-user-with-prompt/34764/2 "2021-03-12T19:47:20Z")

</div>

The become plugins handle a single prompt, the problem with multiple  
is that they would have to know a priori how many and how to keep  
track of 'success' conditions.
