Re: [asterisk-users] Running as non-root

2011-10-23 Thread David Backeberg
On Sun, Oct 23, 2011 at 3:16 PM, Tzafrir Cohen wrote: > On Wed, Oct 19, 2011 at 10:11:08AM -0400, David Backeberg wrote: > >> If you use DAHDI, you need to change ownership of /dev/dahdi/* to the >> non-root owner. I ended up rolling that into the init script for >> dahdi. > > The init script of D

Re: [asterisk-users] Running as non-root

2011-10-23 Thread Torbjörn Abrahamsson
-Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Tzafrir Cohen Sent: den 23 oktober 2011 21:19 To: asterisk-users@lists.digium.com Subject: Re: [asterisk-users] Running as non-root > On Thu, Oct 20, 2011 at

Re: [asterisk-users] Running as non-root

2011-10-23 Thread Tzafrir Cohen
On Thu, Oct 20, 2011 at 09:02:14AM +0200, Torbjörn Abrahamsson wrote: > Thanks for all answers. > > One further question: If I run Asterisk as root, and set its group in > asterisk.conf to apache, and make no changes to file/folder permissions, > will I be able to run "asterisk -rx 'clicmd'" from

Re: [asterisk-users] Running as non-root

2011-10-23 Thread Tzafrir Cohen
On Wed, Oct 19, 2011 at 10:11:08AM -0400, David Backeberg wrote: > If you use DAHDI, you need to change ownership of /dev/dahdi/* to the > non-root owner. I ended up rolling that into the init script for > dahdi. The init script of DAHDI or asterisk is the wrong place for that. If you're one of

Re: [asterisk-users] Running as non-root

2011-10-20 Thread Olivier
2011/10/19 Paul Belanger > Later out I found to properly use snmp you actually need to run > asterisk as root. > > Hi, Can you elaborate a bit ? Which SNMP feature requires to run asterisk as root ? Regards -- _ -- Bandwidth a

Re: [asterisk-users] Running as non-root

2011-10-20 Thread Torbjörn Abrahamsson
Discussion > Subject: Re: [asterisk-users] Running as non-root > > On 11-10-19 05:50 AM, Torbjörn Abrahamsson wrote: > > Hello. > > > > I would like to run asterisk as an user other than root. I have seen > some > > tutorials on the web, but I would like to know

Re: [asterisk-users] Running as non-root

2011-10-19 Thread Paul Belanger
On 11-10-19 05:50 AM, Torbjörn Abrahamsson wrote: Hello. I would like to run asterisk as an user other than root. I have seen some tutorials on the web, but I would like to know if there is some “official” how-to for this. Is there? I looked at a thread on reviewboard regarding this (https://re

Re: [asterisk-users] Running as non-root

2011-10-19 Thread David Backeberg
On Wed, Oct 19, 2011 at 7:19 AM, Torbjörn Abrahamsson wrote: > Thank you, I actually found the asterisk.conf settings after sending the > mail. So next question is which folders/files do I need to change ownership > of to make it work? > > > > /etc/asterisk > > /var/lib/asterisk > > /usr/lib/aster

Re: [asterisk-users] Running as non-root

2011-10-19 Thread Torbjörn Abrahamsson
...@lists.digium.com] On Behalf Of Anton Kvashenkin Sent: Wednesday, October 19, 2011 12:11 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Running as non-root What do you use _now_ to run asterisk: safe_asterisk, init-script, from command-line? What

Re: [asterisk-users] Running as non-root

2011-10-19 Thread Anton Kvashenkin
What do you use _now_ to run asterisk: safe_asterisk, init-script, from command-line? What distribution do you use? To run asterisk from command line as user "asterisk", just run asterisk -U asterisk (asterisk user should be created), or edit /etc/asterisk.conf to run as user "asterisk". In product

[asterisk-users] Running as non-root

2011-10-19 Thread Torbjörn Abrahamsson
Hello. I would like to run asterisk as an user other than root. I have seen some tutorials on the web, but I would like to know if there is some “official” how-to for this. Is there? I looked at a thread on reviewboard regarding this (https://reviewboard.asterisk.org/r/654/). It was Paul B

Re: [Asterisk-Users] Running as non-root user ( was: Vmail.cgi Bahhh!!)

2004-10-20 Thread Olle E. Johansson
Justin wrote: Olle, That's a great start but as the documentation states: NOTE: this requires substantial work to be sure that Asterisk's environment has permission to write the files required for its operation, including logs, its comm socket, the asterisk database, etc. Can that be made ea

Re: [Asterisk-Users] Running as non-root user ( was: Vmail.cgi Bahhh!!)

2004-10-20 Thread Justin
Olle, That's a great start but as the documentation states: NOTE: this requires substantial work to be sure that Asterisk's environment has permission to write the files required for its operation, including logs, its comm socket, the asterisk database, etc. Can that be made easier or is t

Re: [Asterisk-Users] Running as non-root user ( was: Vmail.cgi Bahhh!!)

2004-10-20 Thread Olle E. Johansson
Justin wrote: It is great that this documentation is out there, and that * supports this. However I think in an ideal world this would be inherently supported by * and ideally setup via config file like with apache: User www Group www From the Asterisk man page: asterisk [ -hfdvVqpRgcin ] [ -

Re: [Asterisk-Users] Running as non-root user ( was: Vmail.cgiBahhh!!)

2004-10-20 Thread Paul Dugas
Kristian Kielhofner said: > This is well documented in the wiki and elsewhere. Yes, I know. I even quoted it in my note ;) What I'm suggesting is that it should do so by default, not with some additional changes to the standard installation. Please don't flame me for this but there are far too

Re: [Asterisk-Users] Running as non-root user ( was: Vmail.cgi Bahhh!!)

2004-10-20 Thread Justin
Hi Kristian, It is great that this documentation is out there, and that * supports this. However I think in an ideal world this would be inherently supported by * and ideally setup via config file like with apache: User www Group www Or some other equivalent method. My problem with the existing

Re: [Asterisk-Users] Running as non-root user ( was: Vmail.cgi Bahhh!!)

2004-10-20 Thread Kristian Kielhofner
Paul Dugas wrote: Being fairly retentive about security and a long time admin of Solaris and Linux machines, I find the default behaviour of * running as root troubling. Forgive the potential offense but I don't trust *anyone* (including myself unless I have to) with root access. If * is to becom

[Asterisk-Users] Running as non-root user ( was: Vmail.cgi Bahhh!!)

2004-10-20 Thread Paul Dugas
Being fairly retentive about security and a long time admin of Solaris and Linux machines, I find the default behaviour of * running as root troubling. Forgive the potential offense but I don't trust *anyone* (including myself unless I have to) with root access. If * is to become a product for th