>How can one control the GPIO outputs on a Raspberry Pi2 without needing the
program to run as root?

sudo chown root <program name>
sudo chmod 4755 <program name>

The 4 is setuid bit, which will allow normal users to run the program but
the program itself has root privilege.



--
View this message in context: 
http://free-pascal-general.1045716.n5.nabble.com/Access-GPIO-pins-on-RPi2-without-root-tp5722809p5722810.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to