<div dir="ltr"><div>thank so much again for your response ,</div>
<div> </div>
<div>i don't understand what shoud i do if you can please give me more information how to do in oreder to excute this script </div>
<div> </div>
<div>best regards<br><br></div>
<div class="gmail_quote">2010/4/2 Tzafrir Cohen <span dir="ltr"><<a href="mailto:tzafrir.cohen@xorcom.com">tzafrir.cohen@xorcom.com</a>></span><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class="im">On Fri, Apr 02, 2010 at 09:52:31AM -0700, Steve Edwards wrote:<br>>> On Fri, 2 Apr 2010, salaheddine elharit wrote:<br>>><br>>>> thank you for your response but i need this solution as soon as possible<br>
>>> <br>>>> to restart the asterisk service via a agent poste<br>>>> <br>>>> if ther is any solution please<br>><br>> On Fri, 2 Apr 2010, Steve Edwards wrote:<br>><br>>> Are you asking for clues or are you asking somebody to write it for you?<br>
>><br>>> General outline (off the top of my head) would be to add an entry to<br>>> /etc/sudoers to allow the user executing the httpd process to execute<br>>> /etc/init.d/asterisk (and maybe /etc/init.d/{zaptel,dahdi) and then add<br>
>> a CGI to the web server that executes something like:<br>><br>> "to allow the user executing the httpd process to execute<br>> /etc/init.d/asterisk as the user executing the Asterisk process"<br>
<br></div>Rather: you only need to allow it to run '/etc/init.d/asterisk restart'<br><br>No need to allow it any other action (and for 'status' it should already<br>have the permissions).<br><br>When using sudo and alike, keep in mind to provide the minimal required<br>
permissions, and keep things as simple as possible.<br><font color="#888888"><br>--<br></font>
<div>
<div></div>
<div class="h5"> Tzafrir Cohen<br>icq#16849755 <a href="mailto:jabber%3Atzafrir.cohen@xorcom.com">jabber:tzafrir.cohen@xorcom.com</a><br>+972-50-7952406 mailto:<a href="mailto:tzafrir.cohen@xorcom.com">tzafrir.cohen@xorcom.com</a><br>
<a href="http://www.xorcom.com/" target="_blank">http://www.xorcom.com</a> <a href="http://iax:guest@local.xorcom.com/tzafrir" target="_blank">iax:guest@local.xorcom.com/tzafrir</a><br><br>--<br>_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com/" target="_blank">http://www.api-digital.com</a> --<br>New to Asterisk? Join us for a live introductory webinar every Thurs:<br> <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</div></div></blockquote></div><br></div>