Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why does this only run as root? #44

Open
Simon311 opened this issue Jul 29, 2022 · 2 comments
Open

Why does this only run as root? #44

Simon311 opened this issue Jul 29, 2022 · 2 comments

Comments

@Simon311
Copy link

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

@Self-Perfection
Copy link
Contributor

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

@Simon311
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants