[beagleboard] BeagleBone: How to set MUX and get and set GPIO value by general user?

Hi Mog,

My first thought on this is to write a small shell script (or C program or python, or you choose the language) and set its SUID bit. This will make it run with root permissions. Hence you CGI can call this program and properly set GPIOs. My assumption is that you want to configure this from the web. However if you need to set it once you can do at boot time (more securely IMHO) using rc scripts.

Regards,

Hi JrBenito

Thank you for all the information.

SUID may not be able to set any scripts.

But, as you pointed out,

However if you need to set it once you can do at boot time (more securely
IMHO) using rc scripts.

it is good for me.

Now, my rc.local is like this