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.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.