From 4f85ace5259c10052c539db2d7fb3266bfcb3ab3 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Tue, 21 Feb 2017 14:46:53 +0100 Subject: [PATCH] Force pihole user to use sh-shell (instead of nologin) --- advanced/pihole-FTL.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/advanced/pihole-FTL.service b/advanced/pihole-FTL.service index 6e1a9786..da04738b 100644 --- a/advanced/pihole-FTL.service +++ b/advanced/pihole-FTL.service @@ -28,7 +28,7 @@ start() { touch /var/log/pihole-FTL.log /run/pihole-FTL.pid /run/pihole-FTL.port chown pihole:pihole /var/log/pihole-FTL.log /run/pihole-FTL.pid /run/pihole-FTL.port chmod 0644 /var/log/pihole-FTL.log /run/pihole-FTL.pid /run/pihole-FTL.port - su -c "/usr/bin/pihole-FTL" "$FTLUSER" + su -s /bin/sh -c "/usr/bin/pihole-FTL" "$FTLUSER" echo fi }