From 6f85deadd944e21dfd63972b0adbd8a43c55b6f7 Mon Sep 17 00:00:00 2001 From: herrernst Date: Thu, 5 Jan 2017 18:51:47 +0100 Subject: [PATCH] don't run as root, drop privileges nobody:audio should exists on most distributions explicit user would be prefered --- assets/librespot.service | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/librespot.service b/assets/librespot.service index 0750a0e0..bd381df2 100644 --- a/assets/librespot.service +++ b/assets/librespot.service @@ -4,7 +4,8 @@ Requires=network-online.target After=network-online.target [Service] -#User=librespot +User=nobody +Group=audio Restart=always RestartSec=10 ExecStart=/usr/bin/librespot -n "%p on %H"