Echo 2 > /sys/class/gpio/export -- Permission denied!

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

Are you typing these in pc?

Yes it is typed on a linux laptop with ubuntu, typed in command line.

Then this is wrong, you should type in module

Okay. I will let you know my outcome