With current setup, root is necessary to access GPIO. That is terrible. Instead, do something like: ``` bash adduser tbuser addgroup gpio chown -R root:gpio /sys/class/gpio adduser tbuser gpio ``` and run the daemon script as tbuser (DAEMON_USER).
With current setup, root is necessary to access GPIO. That is terrible.
Instead, do something like:
and run the daemon script as tbuser (DAEMON_USER).