I am trying to enable ethernet iot card however when entering
echo 2 > /sys/class/gpio/export of the three echo commands (see below) to take the card out of reset and enable ethernet I get this error that my permission is denied. I even tried giving myself permission using the chmod command (see image). Nothing is working and it is quite frustrating. Can anybody help.
Echo commands to enable ethernet:
echo 2 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio2/direction
echo 1 > /sys/class/gpio/gpio2/value