Hey folks :-),
first time I am here. Installed freeswitch a few months ago to receive and send faxes. But I had some "permission error" recently for receiving a fax unless I run freeswitch as root user. I tried to use the "SUPPLEMENTARYGROUPS=" setting in my systemd config file, but this didn't help.
Basically the problem is this: I need freeswitch to write to some /var/spool/fax folder, and therefore I added the group "uucp" additionally to the user "freeswitch". So it's default group is the group "freeswitch", and "uucp" is a supplementary group of it.
I however noticed that, the freeswitch process doesn't honor any supplementary groups, just the UID and the default group id. I verified this via the "ps" command:
root@jupiter:/tmp# ps -axo ppid,pid,uid,egid,supgid,cmd | grep freeswitch
1 2518 999 10 /usr/bin/freeswitch -u freeswitch -g uucp -ncwait -nonat
Why is this so? - is it the fault of freeswitch or of my systemd service configuration of freeswitch?
cheers
Steve
I am running Debian buster and the latest release of freeswitch, so my systemd service config for freeswitch looked like that:
[Unit]
Description=freeswitch
Wants=network-online.target
Requires=network.target local-fs.target
After=network.target network-online.target local-fs.target
[Service]
; service
Type=forking
PIDFile=/run/freeswitch/freeswitch.pid
Environment="DAEMON_OPTS=-nonat"
Environment="USER=freeswitch"
Environment="GROUP=freeswitch"
EnvironmentFile=-/etc/default/freeswitch
ExecStartPre=/bin/chown -R ${USER}:${GROUP} /var/lib/freeswitch /var/log/freeswitch /etc/freeswitch /usr/share/freeswitch /var/run/freeswitch
ExecStart=/usr/bin/freeswitch -u ${USER} -g ${GROUP} -ncwait ${DAEMON_OPTS}
TimeoutSec=45s
Restart=always
; exec
;User=${USER}
;Group=${GROUP}
And I tried to add supplementary groups by adding:
"SupplementaryGroups=freeswitch uucp"
after "PIDFILE=" line.