co2mon
co2mon copied to clipboard
Why does this only run as root?
I'll include further details if necessary, but TL;DR it only works with root privileges. Why and how do I fix this?
co2mon daemon needs permissions to access the device file.
You can change device file permissions to allow access for specific user.
For instance in my arch linux package I assign this device to "nobody" user via udev rule: https://aur.archlinux.org/cgit/aur.git/tree/99-co2mon.rules?h=co2mon-git
Never mind, I am blind, the rule is here https://github.com/dmage/co2mon/blob/master/udevrules/99-co2mon.rules