Use sudo instead of setuidpid

This keeps the supplementary groups, most importantly video, which is
needed to access the video devices.
This commit is contained in:
Peter Johnson
2018-11-30 14:09:18 -08:00
parent 90e5ced278
commit d0c39e088b
+1 -1
View File
@@ -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