# Understanding sudo\_user

**URL:** <https://forum.ansible.com/t/understanding-sudo-user/15030>\
**Category:** Ansible Project\
**Created:** [April 15, 2014, 11:18pm UTC](https://forum.ansible.com/t/understanding-sudo-user/15030 "2014-04-15T23:18:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![James\_Goodhouse](https://avatars.discourse-cdn.com/v4/letter/j/54ee81/32.png) [@James\_Goodhouse](https://forum.ansible.com/u/James_Goodhouse)\
**Post date:** [April 15, 2014, 11:18pm UTC](https://forum.ansible.com/t/understanding-sudo-user/15030/1 "2014-04-15T23:18:04Z")

</div>

Hey All,

I’m looking for a quick clarification…

When running a task and setting the sudo\_user field, does the user itself have to have sudo access, or is it more like running sudo su {{user}}?

I ask cause I’m trying to login as a user that have sudo privileges, but want to run a command under another user that does not have sudo privileges.

Thanks!

James

---

<div class="post-metadata">

**Author:** ![Brian\_Coca1](https://avatars.discourse-cdn.com/v4/letter/b/278dde/32.png) [@Brian\_Coca1](https://forum.ansible.com/u/Brian_Coca1)\
**Post date:** [April 16, 2014, 12:43am UTC](https://forum.ansible.com/t/understanding-sudo-user/15030/2 "2014-04-16T00:43:44Z")

</div>

sudo\_user is the user you become with sudo, remote\_user is the user you login to the box as and needs to have sudo privileges.​
