PINE64
gpio operate without sudo - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PINE A64(+) (https://forum.pine64.org/forumdisplay.php?fid=4)
+--- Forum: Pine A64 Projects, Ideas and Tutorials (https://forum.pine64.org/forumdisplay.php?fid=19)
+--- Thread: gpio operate without sudo (/showthread.php?tid=7366)



gpio operate without sudo - mohammed ismayil - 04-10-2019

Board used rock64 OS Bionic minimal 0.7.11.Issue :Gpio script have been executing properly with sudo as per guidence in my project. But while using GPIO script, python modules has not been imported (Example numpy etc).this python module have been installed by pip command.Please help on this


RE: gpio operate without sudo - mohammed ismayil - 04-11-2019

(04-10-2019, 07:28 PM)mohammed ismayil Wrote: Board used rock64 OS Bionic minimal 0.7.11.Issue :Gpio script have been executing properly with sudo as per guidence in my project. But while using GPIO script, python modules has not been imported (Example numpy etc).this python module have been installed by pip command.Please help on this



RE: gpio operate without sudo - jadamcak - 04-14-2019

(04-11-2019, 07:45 AM)mohammed ismayil Wrote:
(04-10-2019, 07:28 PM)mohammed ismayil Wrote: Board used rock64 OS Bionic minimal 0.7.11.Issue :Gpio script have been executing properly with sudo as per guidence in my project. But while using GPIO script, python modules has not been imported (Example numpy etc).this python module have been installed by pip command.Please help on this

Hi, you can make sudo without password  Wink

remove sudo password for user "username":

Code:
usermod -aG  sudo username
echo -e "# No sudo password for username user\nusername ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/90-username
exit
Credits