You are not logged in.

#1 2023-07-12 14:52:28

moy0
Member
Registered: 2021-02-16
Posts: 23

[SOLVED] Nvidia driver makes Xorg run as root?

I have an X1 Extreme Gen 5 with integrated Intel graphics + an Nvidia RTX 3060 (and the HDMI port is on the Nvidia card).

$ lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation Alder Lake-P Integrated Graphics Controller (rev 0c)
01:00.0 VGA compatible controller: NVIDIA Corporation GA106M [GeForce RTX 3060 Mobile / Max-Q] (rev a1)

I don't use a display-manager, I just startx from the tty. When I use the nouveau driver Xorg runs as my user. When I use the nvidia driver Xorg runs as root (presumably doesn't drop permissions). I'm concerned about the security implications of this.

With nouveau:

$ ps -ef | grep Xorg
moy0       2596    2595  8 08:41 tty4     00:00:03 /usr/lib/Xorg -nolisten tcp :0 vt4 -keeptty -auth /tmp/serverauth.qB4oKCQDIJ

With nvidia:

$ ps -ef | grep Xorg
root        2377    2376  5 08:20 tty4     00:00:05 /usr/lib/Xorg -nolisten tcp :0 vt4 -keeptty -auth /tmp/serverauth.AIOsEnRE3j

Not sure what additional info to share to help debug this. It happens even with no Xorg config, and presumably the Xorg.0.log won't help since that comes after X has already started.

Last edited by moy0 (2023-07-13 03:23:06)

Offline

#2 2023-07-12 15:52:05

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,781

Offline

#3 2023-07-13 00:18:04

moy0
Member
Registered: 2021-02-16
Posts: 23

Re: [SOLVED] Nvidia driver makes Xorg run as root?

Thanks!

Offline

Board footer

Powered by FluxBB