<h3>Description</h3>
<p>the /var/run/kamailio directory for the fifo and crtl files are  denied for acces to the service<br>
as i can see directory are owed byt root and only ower and group have<br>
access</p>
<p>kamailio 4.4 backported by me for Debian jessie have this:<br>
<code>drwxr-xr-x 2 kamailio kamailio 100 Aug 15 17:33 kamailio</code><br>
kamailio 5.2 installed on buster/testing build from sources:<br>
<code>drwxr-x--- 2 root root 120 Jan 30 09:35 kamailio</code></p>
<p><strong>NOTE</strong> no definiton are setup, and surprise if i defined some, the only working dir are /tmp !!!</p>
<h3>Troubleshooting</h3>
<p>kamailio 4.4 backported by me for Debian jessie have this:<br>
<code>drwxr-xr-x 2 kamailio kamailio 100 Aug 15 17:33 kamailio</code><br>
kamailio 5.2 installed on buster/testing build from sources:<br>
<code>drwxr-x--- 2 root root 120 Jan 30 09:35 kamailio</code></p>
<p>due that several issues are happened if we started using some modules<br>
due unable to manage the socket control:</p>
<pre><code>Jan 31 15:35:51 venenux-debian kamailio[16861]: 17(16889) ERROR:
<core> [core/io_wait.h:1040]: io_wait_loop_epoll(): epoll_wait(7,
0x7f6ed6f88d88, 0, 5000): Invalid argument [22]
Jan 31 15:35:51 venenux-debian kamailio[16861]: 0(16863) ERROR: ctl
[ctl.c:390]: mod_destroy(): ERROR: ctl: could not delete unix socket
/var/run/kamailio//kamailio_ctl: Permission denied (13)
Jan 31 15:35:51 venenux-debian kamailio[16861]: 0(16863) DEBUG: <core>
[db_pool.c:100]: pool_remove(): removing connection from the pool
Jan 31 15:35:51 venenux-debian kamailio[16861]: 0(16863) DEBUG: tm
[t_funcs.c:85]: tm_shutdown(): start
Jan 31 15:35:51 venenux-debian kamailio[16861]: 0(16863) DEBUG: tm
[t_funcs.c:88]: tm_shutdown(): emptying hash table
Jan 31 15:35:51 venenux-debian kamailio[16861]: 0(16863) DEBUG: tm
[t_funcs.c:90]: tm_shutdown(): removing semaphores
Jan 31 15:35:51 venenux-debian kamailio[16861]: 0(16863) DEBUG: tm
[t_funcs.c:92]: tm_shutdown(): destroying tmcb lists
Jan 31 15:35:51 venenux-debian kamailio[16861]: 0(16863) DEBUG: tm
[t_funcs.c:95]: tm_shutdown(): done
Jan 31 15:35:51 venenux-debian kamailio[16861]: 0(16863) ERROR:
jsonrpcs [jsonrpcs_fifo.c:599]: jsonrpc_fifo_destroy(): FIFO stat
failed: Permission denied
Jan 31 15:35:51 venenux-debian kamailio[16861]: 0(16863) ERROR:
jsonrpcs [jsonrpcs_sock.c:516]: jsonrpc_dgram_destroy(): socket stat
failed: Permission denied
</code></pre>
<h4>Reproduction</h4>
<p>build from sources with default values enable dialog, blf support and asterisk and start service.. when try to control using socket kamailio cannot comunicate with itselft! very ironic!</p>
<h4>Log Messages</h4>
<pre><code>Jan 31 15:35:51 venenux-debian kamailio[16861]: 17(16889) ERROR:
<core> [core/io_wait.h:1040]: io_wait_loop_epoll(): epoll_wait(7,
0x7f6ed6f88d88, 0, 5000): Invalid argument [22]
Jan 31 15:35:51 venenux-debian kamailio[16861]: 0(16863) ERROR: ctl
[ctl.c:390]: mod_destroy(): ERROR: ctl: could not delete unix socket
/var/run/kamailio//kamailio_ctl: Permission denied (13)
Jan 31 15:35:51 venenux-debian kamailio[16861]: 0(16863) DEBUG: <core>
[db_pool.c:100]: pool_remove(): removing connection from the pool
Jan 31 15:35:51 venenux-debian kamailio[16861]: 0(16863) DEBUG: tm
[t_funcs.c:85]: tm_shutdown(): start
Jan 31 15:35:51 venenux-debian kamailio[16861]: 0(16863) DEBUG: tm
[t_funcs.c:88]: tm_shutdown(): emptying hash table
Jan 31 15:35:51 venenux-debian kamailio[16861]: 0(16863) DEBUG: tm
[t_funcs.c:90]: tm_shutdown(): removing semaphores
Jan 31 15:35:51 venenux-debian kamailio[16861]: 0(16863) DEBUG: tm
[t_funcs.c:92]: tm_shutdown(): destroying tmcb lists
Jan 31 15:35:51 venenux-debian kamailio[16861]: 0(16863) DEBUG: tm
[t_funcs.c:95]: tm_shutdown(): done
Jan 31 15:35:51 venenux-debian kamailio[16861]: 0(16863) ERROR:
jsonrpcs [jsonrpcs_fifo.c:599]: jsonrpc_fifo_destroy(): FIFO stat
failed: Permission denied
Jan 31 15:35:51 venenux-debian kamailio[16861]: 0(16863) ERROR:
jsonrpcs [jsonrpcs_sock.c:516]: jsonrpc_dgram_destroy(): socket stat
failed: Permission denied
</code></pre>
<h4>SIP Traffic</h4>
<p>NOT RELATED</p>
<h3>Additional Information</h3>
<ul>
<li><strong>Kamailio Version</strong> - output of <code>kamailio -v</code></li>
</ul>
<pre><code>version: kamailio 5.2.1 (x86_64/linux) 
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144 MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: unknown 
compiled with gcc 4.9.2

</code></pre>
<ul>
<li><strong>Operating System</strong>:</li>
</ul>
<pre><code>Debian buster/testing
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/1827">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZewF9qhHcCxruiuw7HBhQg89eznuks5vIxnmgaJpZM4acrHP">mute the thread</a>.<img src="https://github.com/notifications/beacon/AF36ZaxP9bYUN09Q1n_40nfY0EXAYAIhks5vIxnmgaJpZM4acrHP.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"bug: RPCFIFOPATH / DEFINE_FIFO_NAME invalid acces due changed to root at run (#1827)"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1827"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/1827",
"url": "https://github.com/kamailio/kamailio/issues/1827",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>