Advantage / Disadvantage to install asterisk from CVS was: [Asterisk-Dev] Asterisk run as non root

Joseph syscon at interbaun.com
Wed Sep 14 06:28:06 MST 2005


On Wed, 2005-09-14 at 12:10 +0300, Tzafrir Cohen wrote:
> > > >I'm follows installation instruction from wiki and there is
> section
> > > >"Running Asterisk not as root"
> > > >It is not difficult to follow, but time taking.
> > > >
> > > >Why isn't this section implemented as in cvs if it is considered
> as
> > > >security issue?  I'm sure it wouldn't take much time to write a
> small
> > > >script that would change all the file permission and ownership
> during
> > > >installation.
> 
> That script needs to create a user. Or is it a group? With what name?
> That part needs to be run only once.
> 
> Now you need to chown/chmod a bunch of directories. And also make sure
> asterisk is never run without -U . Or is it -G? Or both? Or is it the
> job of safe_asterisk to do that?
> 
> No, this is the job of the installer/packager. Wanna prove me wrong?
> Please write that script. 

I've noticed that part is easy on Gentoo; emerge asterisk
will do all the work for you: Installing start-up script in /etc/init.d/
configuration file in /etc/conf.d/  and add right urser, owner group.
So right after emerge, you can unmerge the portage version, compile from
cvs and change permission.  

-- 
#Joseph



More information about the asterisk-dev mailing list