Package: coturn
Version: 4.5.1.1-1.1
Followup-For: Bug #904415
Control: retitle -1 coturn: init.d script does not drop root privileges
Control: tags -1 confirmed patch

I can confirm the behaviour. Only init.d script is affected, systemd unit file 
is
fine in this aspect.

Patch attached.

-- 
tobi
--- coturn_package	2020-05-18 13:10:26.722726124 +0200
+++ coturn	2020-05-18 12:54:45.786090495 +0200
@@ -50,7 +50,7 @@
 	#   2 if daemon could not be started
 	start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \
 		|| return 1
-	start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \
+	start-stop-daemon --start --quiet -c $USER:$GROUP --pidfile $PIDFILE --exec $DAEMON -- \
 		$DAEMON_ARGS \
 		|| return 2
 	# Add code here, if necessary, that waits for the process to be ready

Reply via email to