# sudo not working for me  (Mac OS X Mavericks)

**URL:** <https://forum.ansible.com/t/sudo-not-working-for-me-mac-os-x-mavericks/15611>\
**Category:** Ansible Project\
**Created:** [July 5, 2014, 3:50pm UTC](https://forum.ansible.com/t/sudo-not-working-for-me-mac-os-x-mavericks/15611 "2014-07-05T15:50:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_Martinez](https://avatars.discourse-cdn.com/v4/letter/m/df705f/32.png) [@Michael\_Martinez](https://forum.ansible.com/u/Michael_Martinez)\
**Post date:** [July 5, 2014, 3:50pm UTC](https://forum.ansible.com/t/sudo-not-working-for-me-mac-os-x-mavericks/15611/1 "2014-07-05T15:50:32Z")

</div>

I am a new ansible user and I can not get the sudo option working for me.

To keep things simple, I am just trying a simple command: “shutdown -r now”

In ansible, I am entering it as: ansible system\_name -a “shutdown -r now” --sudo -sudo-user myAdminUser

I have tried this many ways and can not get it working.

---

<div class="post-metadata">

**Author:** ![Mauricio\_Tavares](https://avatars.discourse-cdn.com/v4/letter/m/b5e925/32.png) [@Mauricio\_Tavares](https://forum.ansible.com/u/Mauricio_Tavares)\
**Post date:** [July 7, 2014, 2:19am UTC](https://forum.ansible.com/t/sudo-not-working-for-me-mac-os-x-mavericks/15611/2 "2014-07-07T02:19:42Z")

</div>

> I am a new ansible user and I can not get the sudo option working for me.
> 
> To keep things simple, I am just trying a simple command: "shutdown -r  
> now"
> 
> In ansible, I am entering it as: ansible system\_name -a "shutdown -r now"  
> --sudo -sudo-user myAdminUser
> 
> I have tried this many ways and can not get it working.

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Anything in the Mac's log files (system.log and secure.log)? The  
Mac also have a console gui that shows all the log files.
