[asterisk-users] Newbie Asterisk: Install Asterisk as non-root

James Sneeringer jsneerin at gmail.com
Thu May 15 10:57:35 CDT 2008


On Thu, May 15, 2008 at 5:30 AM, Tzafrir Cohen <tzafrir.cohen at xorcom.com> wrote:
> On Thu, May 15, 2008 at 06:17:12PM +1000, Lee, John (Sydney) wrote:
>>
>> 5) Another article says that running as non-root will prevent ToS being
>> used. What is ToS?  Do I need to be concerned?
>
> Anybody wants to write something about this?
> I recall a change in that area in recent Asterisk 1.4-s .

ToS is supported when running non-root on Linux by using kernel
capabilities. On Ubuntu, the libcap-dev package is required for this.
It provides libcap.{a,so} and sys/capability.h, which the Asterisk
configure script will check for before you compile. You can check to
see whether your binary is linked against libcap using the ldd
command:

$ ldd /usr/sbin/asterisk
        linux-gate.so.1 =>  (0xffffe000)
        libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7fd9000)
        libcap.so.1 => /lib/libcap.so.1 (0xb7fd5000)
        libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7fc2000)
        libncurses.so.5 => /lib/libncurses.so.5 (0xb7f81000)
        libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7f5f000)
        libresolv.so.2 => /lib/tls/i686/cmov/libresolv.so.2 (0xb7f4c000)
        libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7e1d000)
        /lib/ld-linux.so.2 (0xb7fe5000)

-James



More information about the asterisk-users mailing list