You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 20, 2023. It is now read-only.
Mason Stone edited this page Nov 5, 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, put
# Use this only if you need access to GPIO on a platform that doesn't support root-less GPIO!
[Service]
User=root
Group=root
ProtectHome=false
in /etc/systemd/system/AlexaPi.service.d/usergroup-root.conf. 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.