BUG Asterisk running as root on IncrediblePBX 13.13

qtlnx

Member
Joined
Mar 9, 2016
Messages
214
Reaction score
13
A startup sequence changes /var/run/asterisk/asterisk.ctl ownership to asterisk:asterisk so UI can manage configuration. However if asterisk has crashed and restarted by /usr/sbin/safe_asterisk then ownership is left as root:root and UI can't control asterisk anymore.
 

dicko

Still learning but earning
Joined
Oct 30, 2015
Messages
1,633
Reaction score
842
It Depending on your os . You edit /etc/default/asterisk on debian to any preferred user and group

For redhat you might need to change AST_USER and AST_GROUP in /etc/init.d/asterisk, but a redhatter here can correct me if needed.
 

qtlnx

Member
Joined
Mar 9, 2016
Messages
214
Reaction score
13
It Depending on your os .

You suggestion is valid for a user created system. However a consumer of pre-packaged VMware image should not need to know any os idiosyncrasies.
 
Last edited:

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,201
Reaction score
5,219
@qtlnx Try this:
Code:
echo "runuser=asterisk
rungroup=asterisk" >> /etc/asterisk/asterisk.conf
amportal restart
 

qtlnx

Member
Joined
Mar 9, 2016
Messages
214
Reaction score
13
the patch is lost, fresh 13-13 install, asterisk still runs as root.
 

Members online

Forum statistics

Threads
25,810
Messages
167,754
Members
19,240
Latest member
nikko
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top