-
Notifications
You must be signed in to change notification settings - Fork 6.3k
add netdata user to video group #21359
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds the netdata user to the video group to enable GPU monitoring on distributions where NVIDIA device files have restricted permissions (e.g., openSUSE Leap 15.6). On these systems, /dev/nvidiactl and related devices are owned by the video group with crw-rw---- permissions, requiring group membership for access.
Key Changes:
- Added
videoto the list of supplementary groups for the netdata user across all installation methods - Implemented conditional logic in the Debian postinst script to only add the group when NVIDIA devices are present
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| packaging/makeself/install-or-update.sh | Added video to NETDATA_WANTED_GROUPS list for makeself installer |
| packaging/installer/functions.sh | Added video to NETDATA_WANTED_GROUPS list for installation script |
| packaging/cmake/pkg-files/deb/user/postinst | Added conditional logic to add video group when /dev/nvidiactl exists |
| netdata.spec.in | Added video to the group iteration loop in RPM post-install script |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No issues found across 4 files
e3603f0 to
60cfc82
Compare
60cfc82 to
ae53aca
Compare
(cherry picked from commit 82323ae)
(cherry picked from commit 82323ae)
Summary
Related #21353
On Debian/Ubuntu, NVIDIA device files are world-readable (crw-rw-rw-), so netdata can access them without special permissions:
However, on some distributions like openSUSE Leap 15.6, these devices are owned by the video group with restricted permissions (crw-rw----):
This causes GPU monitoring to fail because the netdata user cannot access the device.
Test Plan
Additional Information
For users: How does this change affect me?
Summary by cubic
Add netdata to the video group during install/update so it can access NVIDIA device files and enable GPU monitoring on distros with restricted permissions.
Written for commit ae53aca. Summary will update automatically on new commits.