[asterisk-users] Running as non-root
Torbjörn Abrahamsson
torbjorn.abrahamsson at gmail.com
Thu Oct 20 02:02:14 CDT 2011
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 a php-script (running as
user apache with group apache)?
BR,
Torbjörn Abrahamsson
> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-
> bounces at lists.digium.com] On Behalf Of Paul Belanger
> Sent: Wednesday, October 19, 2011 4:19 PM
> To: Asterisk Users Mailing List - Non-Commercial 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 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 Belangers work
> trying
> > to make the installation process take care of this. But the
> conclusion seem
> > to be that the parts concerning this was postponed. So, did it make
> it in
> > some other way?
> >
> My original goal for that patch was to have asterisk do most of the leg
> work setting up the host for a non-root install. At the time I didn't
> think any specific part of asterisk actually required root permissions.
> Later out I found to properly use snmp you actually need to run
> asterisk as root.
>
> There was also some logic added to the configure script but in the end
> it would have been too much work trying to manage all the was to add
> users in the different operating systems.
>
> I had planned to add a script into contrib folder for it, but sadly
> never got around to it. Perhaps I'll spend some time on it at
> Astricon.
>
> --
> Paul Belanger
> Digium, Inc. | Software Developer
> twitter: pabelanger | IRC: pabelanger (Freenode)
> Check us out at: http://digium.com & http://asterisk.org
>
> --
> _____________________________________________________________________
> -- 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
More information about the asterisk-users
mailing list