From d0c39e088b69ab840fb3d5c9354f10bc1f047ec7 Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Fri, 30 Nov 2018 14:09:18 -0800 Subject: [PATCH] Use sudo instead of setuidpid This keeps the supplementary groups, most importantly video, which is needed to access the video devices. --- stage2/01-sys-tweaks/files/camera_run | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stage2/01-sys-tweaks/files/camera_run b/stage2/01-sys-tweaks/files/camera_run index 555640d..e278c78 100755 --- a/stage2/01-sys-tweaks/files/camera_run +++ b/stage2/01-sys-tweaks/files/camera_run @@ -1,4 +1,4 @@ #!/bin/sh sleep 1 cd /home/pi -exec pgrphack setuidgid pi /usr/local/bin/netconsoleServer -u ./runCamera +exec pgrphack sudo -u pi /usr/local/bin/netconsoleServer -u ./runCamera