[asterisk-dev] [Code Review] non-root install for Asterisk

Tilghman Lesher tlesher at digium.com
Thu Jul 15 10:18:29 CDT 2010



> On 2010-07-15 03:46:31, Tzafrir Cohen wrote:
> > /trunk/sounds/Makefile, line 182
> > <https://reviewboard.asterisk.org/r/654/diff/4/?file=11544#file11544line182>
> >
> >     You can simplify those two:
> >     
> >     if [ "$(AST_USER)" != "" ] ; then
> >     	chown -R $(AST_USER):$(AST_GROUP) $(SOUNDS_DIR)
> >     	chown -R $(AST_USER):$(AST_GROUP) $(MOH_DIR)
> >     fi
> >     
> >     'chown $someuser: file' sets the group of that file to the default group of that user.
> 
> pabelanger wrote:
>     Let me do some testing.  Thanks.

That will only work if the AST_GROUP specified is, in fact, the default group of the AST_USER.  For example, someone might want the user to be 'asterisk', with a default group of 'asterisk', but configure asterisk to run with group 'www-data'.  With this change, that would fail.


- Tilghman


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/654/#review2390
-----------------------------------------------------------


On 2010-07-14 23:56:00, pabelanger wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/654/
> -----------------------------------------------------------
> 
> (Updated 2010-07-14 23:56:00)
> 
> 
> Review request for Asterisk Developers.
> 
> 
> Summary
> -------
> 
> Make Asterisk install as non-root, this is now the default behavior.
> 
> 3 new configure options:
> --with-user=uid
> --with-group=gid
> --enable-root
> 
> Various changes to Makefile, prefer install over mkdir, mv, chmod and chgrp.
> 
> 
> Diffs
> -----
> 
>   /trunk/Makefile 276612 
>   /trunk/Makefile.moddir_rules 276612 
>   /trunk/agi/Makefile 276612 
>   /trunk/configure.ac 276612 
>   /trunk/include/asterisk/autoconfig.h.in 276612 
>   /trunk/makeopts.in 276612 
>   /trunk/sounds/Makefile 276612 
> 
> Diff: https://reviewboard.asterisk.org/r/654/diff
> 
> 
> Testing
> -------
> 
> Much more testing required. Only tested with Ubuntu.
> 
> 
> Thanks,
> 
> pabelanger
> 
>




More information about the asterisk-dev mailing list