Hello!
I’am trying to run Asterisk as asterisk user instead root. It seems to work well but when I try to connect to the Asterisk console from another user than root I am not be able. Output I get is:
Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)
but it is accesible for the user:
[looper@sv ~]$ ls -l /var/run/asterisk/asterisk.ctl
srwxr-xr-x 1 asterisk asterisk 0 Feb 9 05:01 /var/run/asterisk/asterisk.ctl
If I run safe_asterisk script I get:
[looper@sv ~]$ /usr/sbin/safe_asterisk
Oops. I’m not root. Falling back to standard prio and file max.
This is NOT suitable for large systems.
/usr/sbin/safe_asterisk: line 130: /dev/tty9: Permission denied
/usr/sbin/safe_asterisk: line 131: /dev/tty9: Permission denied
Asterisk ended with exit status 1
Asterisk died with code 1.
cat: /var/run/asterisk.pid: No such file or directory
Automatically restarting Asterisk.
[looper@sv ~]$ mpg123: no process killed
/usr/sbin/safe_asterisk: line 130: /dev/tty9: Permission denied
…
The user looper is memeber of asterisk group.
I don’t know where the problem can be. Any idea?