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:
parent
90e5ced278
commit
d0c39e088b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user