thank so much again for your response , 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
best regards 2010/4/2 Tzafrir Cohen <[email protected]> > On Fri, Apr 02, 2010 at 09:52:31AM -0700, Steve Edwards wrote: > >> On Fri, 2 Apr 2010, salaheddine elharit wrote: > >> > >>> thank you for your response but i need this solution as soon as > possible > >>> > >>> to restart the asterisk service via a agent poste > >>> > >>> if ther is any solution please > > > > On Fri, 2 Apr 2010, Steve Edwards wrote: > > > >> Are you asking for clues or are you asking somebody to write it for you? > >> > >> General outline (off the top of my head) would be to add an entry to > >> /etc/sudoers to allow the user executing the httpd process to execute > >> /etc/init.d/asterisk (and maybe /etc/init.d/{zaptel,dahdi) and then add > >> a CGI to the web server that executes something like: > > > > "to allow the user executing the httpd process to execute > > /etc/init.d/asterisk as the user executing the Asterisk process" > > Rather: you only need to allow it to run '/etc/init.d/asterisk restart' > > No need to allow it any other action (and for 'status' it should already > have the permissions). > > When using sudo and alike, keep in mind to provide the minimal required > permissions, and keep things as simple as possible. > > -- > Tzafrir Cohen > icq#16849755 > jabber:[email protected]<jabber%[email protected]> > +972-50-7952406 mailto:[email protected] > http://www.xorcom.com iax:[email protected]/tzafrir > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
