I have an application where I want to change the front panel's LED color based on an event - in this case, a weather alert for my area.
I want to run the program as a non-root user, both because it's exposed to the outside world, and I don't want the emails it generates coming from root@mydomain. I'm able to get everything to work, but I can't get the LED to change as any user other than root. It always tells me that I can't write to that directory.
I've tried adding my user to the sudoers file, giving my user RW capability to the specific directory the LEDs are in, and a couple of other things that I can't remember. I can elevate to root, but that seems to have it's own set of problems. Is there any way that I can control this without being root? I feel like I'm missing something here.