<div dir="ltr">Think this will fork if command executed:<div>1) root user;</div><div>2) kamailio user;</div><div>3) member of kamailio group user;</div><div><br></div><div>According to description command executed not under these users.</div><div><br></div><div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jul 30, 2020 at 1:35 PM Igor Potjevlesh <<a href="mailto:igor.potjevlesch@gmail.com">igor.potjevlesch@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="FR"><div class="gmail-m_-3231579798148774889WordSection1"><p class="MsoNormal">Hello Daniel,<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><span lang="EN-GB">I installed from the sources.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-GB">But you're right. I missed the "fifo_mode" param with the right permission. It works better, thank you.<br><br>Regards,<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-GB">Igor.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p><div><div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0cm 0cm"><p class="MsoNormal"><b><span>De :</span></b><span> Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>> <br><b>Envoyé :</b> jeudi 30 juillet 2020 11:16<br><b>À :</b> Kamailio (SER) - Users Mailing List <<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>>; Igor Potjevlesh <<a href="mailto:igor.potjevlesch@gmail.com" target="_blank">igor.potjevlesch@gmail.com</a>>; <a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br><b>Objet :</b> Re: [SR-Users] Issue with kamctl after upgrading to 5.3.4<u></u><u></u></span></p></div></div><p class="MsoNormal"><u></u> <u></u></p><p>Hello,<u></u><u></u></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.<u></u><u></u></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><u></u><u></u></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><u></u><u></u></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><u></u><u></u></p><p><span lang="EN-GB">Cheers,<br>Daniel</span><u></u><u></u></p><div><p class="MsoNormal">On 30.07.20 10:47, Igor Potjevlesh wrote:<u></u><u></u></p></div><blockquote style="margin-top:5pt;margin-bottom:5pt"><p class="MsoNormal">Hello there!<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal"><span lang="EN-GB">I'm having trouble with kamctl since I upgraded to 5.3.4.</span><u></u><u></u></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.</span><u></u><u></u></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.</span><u></u><u></u></p><p class="MsoNormal"><span lang="EN-GB"> </span><u></u><u></u></p><p class="MsoNormal"><span lang="EN-GB">How can I fix that?</span><u></u><u></u></p><p class="MsoNormal"><span lang="EN-GB"> </span><u></u><u></u></p><p class="MsoNormal"><span lang="EN-GB">Regards,</span><u></u><u></u></p><p class="MsoNormal"><span lang="EN-GB"> </span><u></u><u></u></p><p class="MsoNormal"><span lang="EN-GB">Igor.</span><u></u><u></u></p><div id="gmail-m_-3231579798148774889DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><p class="MsoNormal" style="margin-bottom:12pt"><span><u></u> <u></u></span></p><div class="MsoNormal" align="center" style="text-align:center"><span><hr size="1" width="99%" noshade style="color:rgb(144,144,144)" align="center"></span></div><table border="0" cellspacing="0" cellpadding="0" style="border-collapse:collapse"><tbody><tr><td style="padding:0cm 11.25pt 0cm 6pt"><p class="MsoNormal"><a href="https://www.avast.com/antivirus" target="_blank"><span style="text-decoration:none"><img border="0" width="90" height="33" style="width: 0.9375in; height: 0.3437in;" id="gmail-m_-3231579798148774889_x0000_i1026" src="http://static.avast.com/emails/avast-mail-stamp.png" alt="Avast logo"></span></a><span><u></u><u></u></span></p></td><td style="padding:0.75pt"><p><span style="font-size:12pt;color:rgb(61,77,90)">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" target="_blank">www.avast.com</a> <u></u><u></u></span></p></td></tr></tbody></table><p class="MsoNormal"><span><br><br><u></u><u></u></span></p></div><p class="MsoNormal"><span><br><br><u></u><u></u></span></p><pre>_______________________________________________<u></u><u></u></pre><pre>Kamailio (SER) - Users Mailing List<u></u><u></u></pre><pre><a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><u></u><u></u></pre><pre><a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><u></u><u></u></pre></blockquote><pre>-- <u></u><u></u></pre><pre>Daniel-Constantin Mierla -- <a href="http://www.asipto.com" target="_blank">www.asipto.com</a><u></u><u></u></pre><pre><a href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a><u></u><u></u></pre><pre>Funding: <a href="https://www.paypal.me/dcmierla" target="_blank">https://www.paypal.me/dcmierla</a><u></u><u></u></pre></div></div>_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>