Beaglebone Black GPIO without root access


I want to setup to use the GPIOs without root access.

So far i am able to access the GPIOs with root access in my C++ program using SYSFS, but when I run the program again, it receives Permission Denied.

The program tries to access /sys/class/gpio, trying to call : export 60 > /sys/class/gpio

is there a way to read and write to the GPIOs without root access?


This is more of a basic Linux question than anything else. You may want to pick up a Linux book and read about user groups, and permissions.