Skip to content
This repository has been archived by the owner on Dec 20, 2023. It is now read-only.

Running as root

René Kliment edited this page Nov 27, 2016 · 2 revisions

In some cases (as with Orange Pi and C.H.I.P. computers), the only way to access the GPIO pins is via root access. This is generally more insecure and is not recommended for the vast majority of circumstances. However, in those edge cases where it is required, the means to do this are listed below:

SystemD

If you're running under systemd (as you should), which is the default, after the installation is complete, do

cp /opt/AlexaPi/src/scripts/unit-overrides/usergroup-root.conf /etc/systemd/system/AlexaPi.service.d/

Then run systemctl daemon-reload for the changes to take effect and then you can (re)start your AlexaPi!

Classic Init Script

If you've stuck to the old way, edit /etc/init.d/AlexaPi and set the user and group there to root.