I have an app running on a pi that toggles the a system led. Presently I can achieve this by:
1 - running the app as root (no bueno)
2 - Setting permissions chmod 733 /sys/class/leds/led0 (This would let anyone do it)
3- Adding the app user to root group (also no bueno)
What I would like to do is give just the user special permissions to this folder, but not add user to root group.
Is it possible to create another group and allow shared privileges to that file? Is this a good practice. What would be the best way to handle this scenario?
Thanks in advance.