<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hello,</p>
<p>did you install from packages on an OS with systemd? I think I
saw some discussion here on mailing list related to
restriction/permissions enforced by systemd, but I am not sure it
was about the same case.</p>
<p>Anyhow, jsonrpcs also uses a fifo file to receive commands from
kamctl and <span lang="EN-GB">kamailio_rpc.fifo is the one create
in such case. The mi_fifo is no longer available, which was for
MI commands, not for RPC commands.</span></p>
<p><span lang="EN-GB">The jsonrpcs module should have modparams to
set access rights as well as user/group for the rpc fifo file.
That should give enough flexibility to allow different users to
access the fifo file.</span></p>
<p><span lang="EN-GB">Otherwise, I am not sure why it worked for you
before, because it was supposed to be restricted access and as
long as I can remember I used sudo to run kamctl...</span></p>
<p><span lang="EN-GB">Cheers,<br>
Daniel<br>
</span></p>
<div class="moz-cite-prefix">On 30.07.20 10:47, Igor Potjevlesh
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:001e01d6664e$08a2d660$19e88320$@gmail.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal">Hello there!<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-GB">I'm having trouble with
kamctl since I upgraded to 5.3.4.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">The command is working
fine with root user but not with another user. The problem
seems to be that the command try to access to
/var/run/kamailio/kamailio_rpc.fifo even if the file exists.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">I guess it's a
permission problem. But I was thinking that FIFO is no more
used. Only jsonrpcs.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">How can I fix that?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">Igor.<o:p></o:p></span></p>
</div>
<div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2">
<br>
<br>
<hr style="border:none; color:#909090; background-color:#B0B0B0;
height: 1px; width: 99%;">
<table style="border-collapse:collapse;border:none;">
<tbody>
<tr>
<td style="border:none;padding:0px 15px 0px 8px"> <a
href="https://www.avast.com/antivirus"
moz-do-not-send="true"> <img
src="http://static.avast.com/emails/avast-mail-stamp.png"
alt="Avast logo" moz-do-not-send="true" border="0">
</a> </td>
<td>
<p style="color:#3d4d5a;
font-family:"Calibri","Verdana","Arial","Helvetica";
font-size:12pt;"> L'absence de virus dans ce courrier
électronique a été vérifiée par le logiciel antivirus
Avast. <br>
<a href="https://www.avast.com/antivirus"
moz-do-not-send="true">www.avast.com</a> </p>
</td>
</tr>
</tbody>
</table>
<br>
<a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1"
height="1" moz-do-not-send="true"> </a></div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Funding: <a class="moz-txt-link-freetext" href="https://www.paypal.me/dcmierla">https://www.paypal.me/dcmierla</a></pre>
</body>
</html>