<p>I tested on 5.2.0 release and not see any issues with <code>kamailio:daemon</code> permissions.<br>
Please check on your side again.</p>
<pre><code>[root@us-west-sw1 ~]# wget https://download.opensuse.org/repositories/home:/kamailio:/v5.2.x-rpms/CentOS_7/x86_64/kamailio-5.2.0-2.1.x86_64.rpm
--2018-12-05 21:12:36--  https://download.opensuse.org/repositories/home:/kamailio:/v5.2.x-rpms/CentOS_7/x86_64/kamailio-5.2.0-2.1.x86_64.rpm
Resolving download.opensuse.org (download.opensuse.org)... 195.135.221.134, 2620:113:80c0:8::13
Connecting to download.opensuse.org (download.opensuse.org)|195.135.221.134|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://provo-mirror.opensuse.org/repositories/home:/kamailio:/v5.2.x-rpms/CentOS_7/x86_64/kamailio-5.2.0-2.1.x86_64.rpm [following]
--2018-12-05 21:12:37--  https://provo-mirror.opensuse.org/repositories/home:/kamailio:/v5.2.x-rpms/CentOS_7/x86_64/kamailio-5.2.0-2.1.x86_64.rpm
Resolving provo-mirror.opensuse.org (provo-mirror.opensuse.org)... 130.57.72.10
Connecting to provo-mirror.opensuse.org (provo-mirror.opensuse.org)|130.57.72.10|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5816772 (5.5M) [application/x-redhat-package-manager]
Saving to: ‘kamailio-5.2.0-2.1.x86_64.rpm’

100%[===================================================================================================================================>] 5,816,772   20.3MB/s   in 0.3s   

2018-12-05 21:12:37 (20.3 MB/s) - ‘kamailio-5.2.0-2.1.x86_64.rpm’ saved [5816772/5816772]

[root@us-west-sw1 ~]# yum install kamailio-5.2.0-2.1.x86_64.rpm 
Loaded plugins: fastestmirror
Examining kamailio-5.2.0-2.1.x86_64.rpm: kamailio-5.2.0-2.1.x86_64
Marking kamailio-5.2.0-2.1.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package kamailio.x86_64 0:5.2.0-2.1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================================================================
 Package                              Arch                               Version                                Repository                                              Size
=============================================================================================================================================================================
Installing:
 kamailio                             x86_64                             5.2.0-2.1                              /kamailio-5.2.0-2.1.x86_64                              25 M

Transaction Summary
=============================================================================================================================================================================
Install  1 Package

Total size: 25 M
Installed size: 25 M
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : kamailio-5.2.0-2.1.x86_64                                                                                                                                 1/1 
warning: group kamailio does not exist - using root
warning: group kamailio does not exist - using root
  Verifying  : kamailio-5.2.0-2.1.x86_64                                                                                                                                 1/1 

Installed:
  kamailio.x86_64 0:5.2.0-2.1                                                                                                                                                

Complete!
[root@us-west-sw1 ~]# systemctl start kamailio
[root@us-west-sw1 ~]# ls -ld /var/run/kamailio/
drwx------. 2 kamailio daemon 120 Dec  5 21:12 /var/run/kamailio/
[root@us-west-sw1 ~]# ls -ld /var/run/kamailio/*
srw-------. 1 kamailio daemon 0 Dec  5 21:12 /var/run/kamailio/kamailio_ctl
-rw-r--r--. 1 kamailio daemon 6 Dec  5 21:12 /var/run/kamailio/kamailio.pid
prw-rw----. 1 kamailio daemon 0 Dec  5 21:12 /var/run/kamailio/kamailio_rpc.fifo
srw-rw----. 1 kamailio daemon 0 Dec  5 21:12 /var/run/kamailio/kamailio_rpc.sock
[root@us-west-sw1 ~]# 
</code></pre>
<p>I can see error</p>
<pre><code>warning: group kamailio does not exist - using root
warning: group kamailio does not exist - using root
</code></pre>
<p>But this not related to systemd unit file.</p>

<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/pull/1754#issuecomment-444651544">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZQE-qNhsttZSyM4zKha0AZThc4q4ks5u2De7gaJpZM4ZCWBN">mute the thread</a>.<img src="https://github.com/notifications/beacon/AF36ZbO_SjN4sTXrLlqZREDPIpjUPrY0ks5u2De7gaJpZM4ZCWBN.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://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"PERSON","message":"@sergey-safarov in #1754: I tested on 5.2.0 release and not see any issues with `kamailio:daemon` permissions.\r\nPlease check on your side again.\r\n```\r\n[root@us-west-sw1 ~]# wget https://download.opensuse.org/repositories/home:/kamailio:/v5.2.x-rpms/CentOS_7/x86_64/kamailio-5.2.0-2.1.x86_64.rpm\r\n--2018-12-05 21:12:36--  https://download.opensuse.org/repositories/home:/kamailio:/v5.2.x-rpms/CentOS_7/x86_64/kamailio-5.2.0-2.1.x86_64.rpm\r\nResolving download.opensuse.org (download.opensuse.org)... 195.135.221.134, 2620:113:80c0:8::13\r\nConnecting to download.opensuse.org (download.opensuse.org)|195.135.221.134|:443... connected.\r\nHTTP request sent, awaiting response... 302 Found\r\nLocation: https://provo-mirror.opensuse.org/repositories/home:/kamailio:/v5.2.x-rpms/CentOS_7/x86_64/kamailio-5.2.0-2.1.x86_64.rpm [following]\r\n--2018-12-05 21:12:37--  https://provo-mirror.opensuse.org/repositories/home:/kamailio:/v5.2.x-rpms/CentOS_7/x86_64/kamailio-5.2.0-2.1.x86_64.rpm\r\nResolving provo-mirror.opensuse.org (provo-mirror.opensuse.org)... 130.57.72.10\r\nConnecting to provo-mirror.opensuse.org (provo-mirror.opensuse.org)|130.57.72.10|:443... connected.\r\nHTTP request sent, awaiting response... 200 OK\r\nLength: 5816772 (5.5M) [application/x-redhat-package-manager]\r\nSaving to: ‘kamailio-5.2.0-2.1.x86_64.rpm’\r\n\r\n100%[===================================================================================================================================\u003e] 5,816,772   20.3MB/s   in 0.3s   \r\n\r\n2018-12-05 21:12:37 (20.3 MB/s) - ‘kamailio-5.2.0-2.1.x86_64.rpm’ saved [5816772/5816772]\r\n\r\n[root@us-west-sw1 ~]# yum install kamailio-5.2.0-2.1.x86_64.rpm \r\nLoaded plugins: fastestmirror\r\nExamining kamailio-5.2.0-2.1.x86_64.rpm: kamailio-5.2.0-2.1.x86_64\r\nMarking kamailio-5.2.0-2.1.x86_64.rpm to be installed\r\nResolving Dependencies\r\n--\u003e Running transaction check\r\n---\u003e Package kamailio.x86_64 0:5.2.0-2.1 will be installed\r\n--\u003e Finished Dependency Resolution\r\n\r\nDependencies Resolved\r\n\r\n=============================================================================================================================================================================\r\n Package                              Arch                               Version                                Repository                                              Size\r\n=============================================================================================================================================================================\r\nInstalling:\r\n kamailio                             x86_64                             5.2.0-2.1                              /kamailio-5.2.0-2.1.x86_64                              25 M\r\n\r\nTransaction Summary\r\n=============================================================================================================================================================================\r\nInstall  1 Package\r\n\r\nTotal size: 25 M\r\nInstalled size: 25 M\r\nIs this ok [y/d/N]: y\r\nDownloading packages:\r\nRunning transaction check\r\nRunning transaction test\r\nTransaction test succeeded\r\nRunning transaction\r\n  Installing : kamailio-5.2.0-2.1.x86_64                                                                                                                                 1/1 \r\nwarning: group kamailio does not exist - using root\r\nwarning: group kamailio does not exist - using root\r\n  Verifying  : kamailio-5.2.0-2.1.x86_64                                                                                                                                 1/1 \r\n\r\nInstalled:\r\n  kamailio.x86_64 0:5.2.0-2.1                                                                                                                                                \r\n\r\nComplete!\r\n[root@us-west-sw1 ~]# systemctl start kamailio\r\n[root@us-west-sw1 ~]# ls -ld /var/run/kamailio/\r\ndrwx------. 2 kamailio daemon 120 Dec  5 21:12 /var/run/kamailio/\r\n[root@us-west-sw1 ~]# ls -ld /var/run/kamailio/*\r\nsrw-------. 1 kamailio daemon 0 Dec  5 21:12 /var/run/kamailio/kamailio_ctl\r\n-rw-r--r--. 1 kamailio daemon 6 Dec  5 21:12 /var/run/kamailio/kamailio.pid\r\nprw-rw----. 1 kamailio daemon 0 Dec  5 21:12 /var/run/kamailio/kamailio_rpc.fifo\r\nsrw-rw----. 1 kamailio daemon 0 Dec  5 21:12 /var/run/kamailio/kamailio_rpc.sock\r\n[root@us-west-sw1 ~]# \r\n```\r\nI can see error \r\n```\r\nwarning: group kamailio does not exist - using root\r\nwarning: group kamailio does not exist - using root\r\n```\r\nBut this not related to systemd unit file."}],"action":{"name":"View Pull Request","url":"https://github.com/kamailio/kamailio/pull/1754#issuecomment-444651544"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/pull/1754#issuecomment-444651544",
"url": "https://github.com/kamailio/kamailio/pull/1754#issuecomment-444651544",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
},
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"hideOriginalBody": "false",
"originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB",
"title": "Re: [kamailio/kamailio] kamailio.service: fixed RunTimeDir Permission Error (#1754)",
"sections": [
{
"text": "",
"activityTitle": "**sergey-safarov**",
"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@sergey-safarov",
"facts": [

]
}
],
"potentialAction": [
{
"name": "Add a comment",
"@type": "ActionCard",
"inputs": [
{
"isMultiLine": true,
"@type": "TextInput",
"id": "IssueComment",
"isRequired": false
}
],
"actions": [
{
"name": "Comment",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"kamailio/kamailio\",\n\"issueId\": 1754,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}"
}
]
},
{
"name": "Close pull request",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"PullRequestClose\",\n\"repositoryFullName\": \"kamailio/kamailio\",\n\"pullRequestId\": 1754\n}"
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/kamailio/kamailio/pull/1754#issuecomment-444651544"
}
],
"@type": "OpenUri",
"name": "View on GitHub"
},
{
"name": "Unsubscribe",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 420044877\n}"
}
],
"themeColor": "26292E"
}
]</script>