<p></p>
<p>Also, you can create drop-in and start Kamailio with required user and group</p>
<pre><code>[Service]
User=www-data
Group=root
</code></pre>
<p>Or you can create drop-in and start Kamailio as before under root user and then drop process permission</p>
<blockquote>
<p>On systemd, to change username or group please create drop-in<br>
/etc/systemd/system/kamailio.service.d/10-user_group.conf file, like</p>
</blockquote>
<pre><code>[Service]
User=root
Group=root
ExecStart=
ExecStart=/usr/sbin/kamailio -P /run/kamailio/kamailio.pid -f $CFGFILE -m $SHM_MEMORY -M $PKG_MEMORY -u kamailio -g kamailio
</code></pre>
<p>Blank "ExecStart=" to clean <code>ExecStart</code> from the main <code>kamailio.service</code> 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/issues/2391#issuecomment-653882889">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZPE6TRZOXDUYS3IXJ3R2BWZDANCNFSM4OQZWM4A">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZJNACOK2CVMZJXMW4LR2BWZDA5CNFSM4OQZWM4KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOE34XMCI.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2391#issuecomment-653882889",
"url": "https://github.com/kamailio/kamailio/issues/2391#issuecomment-653882889",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>