On Fri, Jun 02, 2023 at 04:32:38PM +0000, therealcyclist wrote: > I tried the new Debian bookworm installer rc4 and i manually installed i3-wm. > I started i3 from tty with startx command as user. > to my surprise i found out that the xorg process is running as root. > that can't be intentional, can it? > > I have fixed the problem by adding the following line in > /etc/X11/Xwrapper.config > > needs_root_rights = no > > After that xorg runs as user.
That's quite strange. I have not installed bookworm, but I just upgraded to it. I use startx as well (but with fvwm instead of i3-wm), and I'm not seeing this problem. Xorg runs as me, just as it has done for the last few releases. unicorn:~$ ps -ef | grep X greg 1030 1007 0 May31 tty1 00:00:00 xinit /etc/X11/xinit/xinitrc -- /etc/X11/xinit/xserverrc :0 vt1 -keeptty -auth /tmp/serverauth.C7PjJM0pDW greg 1032 1030 1 May31 tty1 00:45:52 /usr/lib/xorg/Xorg -nolisten tcp :0 vt1 -keeptty -auth /tmp/serverauth.C7PjJM0pDW greg 54927 1160 0 19:46 pts/3 00:00:00 grep X unicorn:~$ grep -v ^# /etc/X11/Xwrapper.config allowed_users=console No "needs_root_rights" here, so I don't know why yours needs it. Maybe it's got something to do with driver selection? If I recall correctly from the days when this change was made, some cards that use legacy drivers may need special configuration.