#801869 nvidia-graphics-drivers: setting /dev/nvidia* to root:video 0660 breaks gdm3, sddm, ... #801869
- Package:
- src:nvidia-graphics-drivers
- Source:
- nvidia-graphics-drivers
- Submitter:
- Andreas Beckmann
- Date:
- 2025-08-17 17:48:01 UTC
- Severity:
- normal
- Tags:
Setting the permissions on /dev/nvidia* properly (i.e. root:video 0660) breaks display managers that use acceleration (e.g. gdm3, sddm). A workaround is to put the dm's user into the video group (e.g. adduser Debian-gdm video). For local users logging into X a session-based membership in the video group is handled automatically via some consolekit magic (in nvidia-kernel-common). This bug went unnoticed for a long time due to wrong permissions (root:root 0666) being applied by the udev module autoload (see #801598). Andreas
BTW, how is this issue solved in other distributions? Ubuntu? Any other? Or are they all using 0666 default permissions? Andreas
I believe consolekit is deprecated, has this magic been ported to systemd-logind? If it has, I don't think it's working quite right - I had to put both Debian-gdm and my personal account into the video group permanently to get a GNOME session just now. No magic happening. Consolekit isn't installed, nothing in the GNOME area seems to depend on it anymore.
Installed Ubuntu 15.10 beta2 on another partition to check. It's running with 352. The devices are created with 666 root:root: $ ls -l /dev/nvidia* crw-rw-rw- 1 root root 195, 0 Oct 19 00:13 /dev/nvidia0 crw-rw-rw- 1 root root 195, 255 Oct 19 00:13 /dev/nvidiactl Let me know if you would like to check anything else. Kind regards, Luca Boccassi
Can you "break" it with /etc/modprobe.d/nvidia-kernel-common.conf from Debian? (maybe adjusting the module name... I don't know whether/how they rename the modules) I'm getting slightly tempted to 2s/^/#/ ... Andreas
No. Help needed. Is there anything consolekit related installed? * ensure that your user account is *not* in group video (I think the first user created upon installation may be added to a few more groups including video ...) * ensure that Debian-gdm is in group video * use nvidia-driver from backports (that should load with root:video 0660) Expected: gdm starts, what about using glx as a user? Andreas
Yep, that breaks it good. GDM crashes with expected GLX error on Ubuntu too when the devices are not root:root 666. Kind regards, Luca Boccassi
The consolekit package is not installed, and the libck-connector0 library is not installed as well. My user was in the video group as you guessed, removed. Added. Installed, and those are the permissions. Nope, oopses with usual error :-( Kind regards, Luca Boccassi
Hmm, gdm already dies? But hadn't that worked previously (with the add-to-group-video workaround)? Andreas
Yes, but not without the user in the video group, hadn't tried that before. Kind regards, Luca Boccassi
Control: severity -1 normal since restricting this to root:video 0660 causes too much trouble. Therefore downgrading the severity. But we would still be interested in a working solution with more restricted permissions. Andreas