[OpenSIPS-Users] restart_persistency Permission denied

Marcin Groszek marcin at voipplus.net
Fri Nov 5 11:52:46 EST 2021


Thank you. I do have 2 more questions regarding restart_persistency.

How do I estimate the size of cache file needed for my instant?

Calls that are ringing do not survive the restart, is this normal behavior?

ngrep shows no respond from opensips to 200 upon answer.


On 11/5/2021 4:47 AM, Liviu Chircu wrote:
> On 05.11.2021 02:14, Marcin Groszek wrote:
>> after I changed the ownership of the .restart_persistency.cache to 
>> opensips I was able to start daemon as opensips user.
>>
>> Is this proper way of doing this or just a poor workaround?
>
> Hi Marcin,
>
> This is an interesting report and although it looks like the devs 
> could do something to improve your experience, ultimately I think this 
> is a sysadmin runtime configuration error.  Here is my reasoning:
>
> * by default, OpenSIPS starts as "root" user, with work directory 
> "/".  So drouting should work fine, as there is full permission to 
> write to the "/" directory.
>
> * in your case, you are downgrading permissions from "root" user to 
> "opensips" user, but you are not customizing the "-w" work directory 
> option, which remains "/". So, of course the "opensips" user cannot 
> write to "/".
>
> Hope this helps,
>



More information about the Users mailing list