# Web user

**URL:** <https://community.freepbx.org/t/web-user/9141>\
**Category:** General Help\
**Created:** [September 15, 2010, 1:26am UTC](https://community.freepbx.org/t/web-user/9141 "2010-09-15T01:26:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rgpfreepbx](https://community.freepbx.org/letter_avatar_proxy/v4/letter/r/b2d939/32.png) [@rgpfreepbx](https://community.freepbx.org/u/rgpfreepbx)\
**Post date:** [September 15, 2010, 1:26am UTC](https://community.freepbx.org/t/web-user/9141/1 "2010-09-15T01:26:34Z")

</div>

Hello,

I’m using asterisknow 1.7 with freepbx 2.7. When I make other php page for doing for example a shutdown It doesn`t work. I tried with the command system\_exec(‘whoami’) and the user is asterisk. I added in my sudoers.conf :

asterisk ALL=(ALL) NOPASSWD: ALL  
%asterisk ALL=(ALL) NOPASSWD: ALL  
apache ALL=(ALL) NOPASSWD: ALL

but if I use system\_exec(‘sudo halt’) it doesn´t work.

Any suggestions?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![w5waf](https://community.freepbx.org/letter_avatar_proxy/v4/letter/w/ecd19e/32.png) [@w5waf](https://community.freepbx.org/u/w5waf)\
**Post date:** [September 15, 2010, 12:06pm UTC](https://community.freepbx.org/t/web-user/9141/2 "2010-09-15T12:06:24Z")

</div>

try using sudo /sbin/halt
