Hi Everyone, I installed Asterisk-1.6 by user root and its working fine. but when i tried to run any asterisk command through apache user it shows Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist? i think its a permission error. how can i give the root permission to apache ? ?please help !!!!!! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100619/90f36b84/attachment.htm
On Sat, 19 Jun 2010, pankaj pandey wrote:> how can i give the root permission to apache ?sudo. However, without careful configuration you will probably be giving root access to any process that runs as your apache user. I've never done it, but I'm guessing you could create a group, make your asterisk user and your apache user members of that group and protect resources appropriately. What are you trying to accomplish that you can't using AMI, querying a database, creating a call file or parsing a log file? -- Thanks in advance, ------------------------------------------------------------------------- Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000
thanks for reply.> > > how can i give the root permission toapache ?> > sudo.i also tried sudo .> > However, withoutcareful configuration you will probably be giving root> accessto any process that runs as your apache user.> > I'venever done it, but I'm guessing you could create a group, make your>asterisk user and your apache user members of that group and protect>resources appropriately.> > What are you trying toaccomplish that you can't using AMI, querying a> database,creating a call file or parsing a log file?>Alternatively, as of1.6.1 (or is it 1.6.2) you have CLI permissions.>You can allowanybody to write to the socket, but only a limited set of>commands tothe user 'apache' or whatever. See>/etc/asterisk/cli_permissions.conf. i am using asterisk 1.6.2 but did't find /etc/asterisk/cli_permissions.conf. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100621/bc27d66c/attachment.htm