Also, you can create drop-in and start Kamailio with required user and group ``` [Service] User=www-data Group=root ```
Or you can create drop-in and start Kamailio as before under root user and then drop process permission
On systemd, to change username or group please create drop-in
/etc/systemd/system/kamailio.service.d/10-user_group.conf file, like ``` [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 ``` Blank "ExecStart=" to clean `ExecStart` from the main `kamailio.service` unit file.