Unable to access the running directory (Permission denied). Changing to ‘/’ for compatibility.
Asterisk already running on /var/run/asterisk/asterisk.ctl. Use ‘asterisk -r’ to connect
When I type
sudo asterisk -rvvvvvvvvvvvvvvvvvv
Asterisk 22.7.0, Copyright (C) 1999 - 2025, Sangoma Technologies Corporation and others.
Created by Mark Spencer markster@digium.com
Asterisk comes with ABSOLUTELY NO WARRANTY; type ‘core show warranty’ for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type ‘core show license’ for details.
Running as user ‘asterisk’
Running under group ‘asterisk’
and then the window freeze.
I cannot type anything more, I’m obliged to reboot
I beleive there is something to do with user permissions
On Wednesday 31 December 2025 at 17:42:54, Stephan via Asterisk Community
wrote:
I just installed LTS22 on debian
Please tell us which version of Debian, and how you installed Asterisk - was
it the Debian Sid (unstable) package Debian -- Details of package asterisk in sid
or did you build from source?
Thanks,
Antony.
–
The first fifty percent of an engineering project takes ninety percent of the
time, and the remaining fifty percent takes another ninety percent of the time.
On Friday 02 January 2026 at 17:10:23, Stephan via Asterisk Community wrote:
2/ I’m logged as root, I builded it as root
I believe I chown -R asterisk:asterisk all files as it is supposed to run
under asterisk user
Okay, what do you get for:
grep ASTERISK /etc/default/asterisk
grep run /etc/asterisk/asterisk.conf
grep asterisk /etc/passwd
ls -Ald /etc/asterisk
Also, when you say “chown -R asterisk:asterisk all files” what exactly do you
mean by “all files”? What directory name/s did you give to the chown command?
#grep run /etc/asterisk/asterisk.conf
astrundir => /var/run/asterisk
runuser = asterisk ; The user to run as.
rungroup = asterisk ; The group to run as.
On Friday 02 January 2026 at 18:47:39, Stephan via Asterisk Community wrote:
Thank you for your help, I’m really lost !
Nothing you’ve posted as answers to my questions stands out as unexpected or a
potential reason for your problem.
However, given that you have installed from source Asterisk 22.7.0 on a Debian
machine, and that identical version is available as a Debian package (in sid),
I suggest you try uninstalling what you currently have on the machine and then
install the packaged version instead.
There are some differences in the compiler options between the “standard
Asterisk” build-from-source process and what the Debian maintainers do,
however I suspect these are unlikely to affect your usage of the system, and
it’s almost certainly a far simpler way of getting what you want, installed
and running.
I have been using the packaged Debian version for many years now, and have
never run into a problem where I had to build from source to resolve it.
Unless anyone else can chip in with some furterh suggestions on how to find out
why your machine is behaving the way it is, I think this might be your
simplest and easiest solution.
Antony.
–
It seems that perfection is attained not when there is nothing left to add, ut
rather when there is nothing left to subtract.
Asterisk already running on /var/run/asterisk/asterisk.ctl. Use ‘asterisk -r’ to connect.
then when I do
sudo asterisk -rvvvvvvvdddddd
Seeding global EID ‘00:15:5d:00:64:02’ from ‘eth0’ using ‘siocgifhwaddr’
Parsing /etc/asterisk/asterisk.conf
Asterisk 22.7.0, Copyright (C) 1999 - 2025, Sangoma Technologies Corporation and others.
Created by Mark Spencer markster@digium.com
Asterisk comes with ABSOLUTELY NO WARRANTY; type ‘core show warranty’ for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type ‘core show license’ for details.
Running as user ‘asterisk’
Running under group ‘asterisk’
Killed
it hang before the killed word. Killed is written when I kill the process
sudo asterisk -cTvvvvvvvvvvdddddddd
Seeding global EID ‘00:15:5d:00:64:02’ from ‘eth0’ using ‘siocgifhwaddr’
Parsing /etc/asterisk/asterisk.conf
Unable to access the running directory (Permission denied). Changing to ‘/’ for compatibility.
Asterisk already running on /var/run/asterisk/asterisk.ctl. Use ‘asterisk -r’ to connect.