co2mon icon indicating copy to clipboard operation
co2mon copied to clipboard

Why does this only run as root?

Open Simon311 opened this issue 2 years ago • 2 comments

I'll include further details if necessary, but TL;DR it only works with root privileges. Why and how do I fix this?

Simon311 avatar Jul 29 '22 19:07 Simon311

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

Self-Perfection avatar Jul 29 '22 19:07 Self-Perfection

Never mind, I am blind, the rule is here https://github.com/dmage/co2mon/blob/master/udevrules/99-co2mon.rules

Simon311 avatar Jul 30 '22 04:07 Simon311