Re: [asterisk-users] asterisk appache issue

2010-06-21 Thread pankaj pandey

thanks for reply.

 
  how can i give the root permission to 
apache ?
 
 sudo.

i also tried 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?

Alternatively, as of 
1.6.1 (or is it 1.6.2) you have CLI permissions.
You can allow 
anybody to write to the socket, but only a limited set of
commands to
 the 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.




-- 
_
-- 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

Re: [asterisk-users] asterisk appache issue

2010-06-19 Thread Steve Edwards
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   sedwa...@sedwards.com  Voice: +1-760-468-3867 PST
Newline  Fax: +1-760-731-3000

-- 
_
-- 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


Re: [asterisk-users] asterisk appache issue

2010-06-19 Thread Tzafrir Cohen
On Sat, Jun 19, 2010 at 12:23:44AM -0700, Steve Edwards wrote:
 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?

Alternatively, as of 1.6.1 (or is it 1.6.2) you have CLI permissions.
You can allow anybody to write to the socket, but only a limited set of
commands to the user 'apache' or whatever. See
/etc/asterisk/cli_permissions.conf .

-- 
   Tzafrir Cohen
icq#16849755  jabber:tzafrir.co...@xorcom.com
+972-50-7952406   mailto:tzafrir.co...@xorcom.com
http://www.xorcom.com  iax:gu...@local.xorcom.com/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