[asterisk-users] Running as non-root

Paul Belanger pabelanger at digium.com
Wed Oct 19 09:19:23 CDT 2011


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



More information about the asterisk-users mailing list