Bug 1309986

Summary: asterisk runs as root
Product: [Fedora] Fedora EPEL Reporter: Bennie Joubert <bennie.joubert>
Component: asteriskAssignee: Jared Smith <jsmith.fedora>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: el6CC: bennie.joubert, bugzilla, g.devel, jsmith.fedora, rbryant
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-30 15:02:31 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Bennie Joubert 2016-02-19 07:14:18 UTC
Description of problem:
Asterisk is running as root on EL6 and ignoring /etc/sysconfig/asterisk config.  Seems to be the same bug reported in:

https://bugzilla.redhat.com/show_bug.cgi?id=666081


Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. service asterisk start


Actual results:
[root@localhost ~]# ps aux | grep asterisk
root      1573  4.6  2.1 992204 21756 ?        Ssl  09:13   0:00 /usr/sbin/asterisk -C /etc/asterisk/asterisk.conf

Expected results:
[root@sip ~]# ps aux | grep asterisk
asterisk 17089  0.1  3.7 1011888 38364 ?       Ssl  Feb12  16:01 /usr/sbin/asterisk -U asterisk -C /etc/asterisk/asterisk.conf

Comment 1 Bennie Joubert 2016-02-19 07:44:11 UTC
Patch to fix: 

--- asterisk.initd.orig	2016-02-19 09:39:53.885482238 +0200
+++ asterisk.initd.new	2016-02-19 09:33:23.729483781 +0200
@@ -95,10 +95,10 @@ start() {
 	cd $HOME
 
 	if [ $AST_USER ] ; then
-		AST_ARGS="$AST_ARGS -U $AST_USER"
+		ASTARGS="$ASTARGS -U $AST_USER"
 	fi
 	if [ $AST_GROUP ] ; then
-		AST_ARGS="$AST_ARGS -G $AST_GROUP"
+		ASTARGS="$ASTARGS -G $AST_GROUP"
 	fi
 	if [ $AST_CONFIG ]; then
 		ASTARGS="$ASTARGS -C $AST_CONFIG"

Comment 2 Telford Tendys 2016-11-28 04:39:56 UTC
I have tested and confirm this same problem. Version: asterisk-1.8.32.3-2.el6.x86_64

Tried reporting to Digium but they are not maintaining Asterisk 1.8 any more. See also...

https://issues.asterisk.org/jira/browse/ASTERISK-26619



I have edited /etc/sysconfig/asterisk manually but a packaged fix would be much better than manual script edits.

Comment 3 Ben Cotton 2020-11-05 16:49:52 UTC
This message is a reminder that EPEL 6 is nearing its end of life. Fedora will stop maintaining and issuing updates for EPEL 6 on 2020-11-30. It is our policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a 'version' of 'el6'.

Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later EPEL version.

Thank you for reporting this issue and we are sorry that we were not able to fix it before EPEL 6 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged  change the 'version' to a later Fedora version prior this bug is closed as described in the policy above.

Comment 4 Ben Cotton 2020-11-30 15:02:31 UTC
EPEL el6 changed to end-of-life (EOL) status on 2020-11-30. EPEL el6 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
EPEL please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.