From 9a950d00464bdf7052e0a8000a073f7b8dc1f788 Mon Sep 17 00:00:00 2001 From: lotherk Date: Wed, 18 Nov 2026 05:43:16 +0000 Subject: [PATCH] dtlogin: the NetBSD server keeps the pseudo-user (as CDE has it) Running it as root made it enforce access control, and the display manager's own connection then failed before the greeter ('Authorization required, but no authorization protocol specified'). As nobody it cannot read the -auth file and serves without access control, which is how this display has always worked; the session now uses the user's ~/.Xauthority (previous commit). --- programs/dtlogin/config/Xservers.src | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/programs/dtlogin/config/Xservers.src b/programs/dtlogin/config/Xservers.src index 432bc102..2ae5c07d 100644 --- a/programs/dtlogin/config/Xservers.src +++ b/programs/dtlogin/config/Xservers.src @@ -104,10 +104,13 @@ XCOMM * Local local@console /usr/bin/X :0 #elif defined (__OpenBSD__) :0 Local local_uid@console root /usr/X11R6/bin/X :0 #elif defined (__NetBSD__) -XCOMM The server runs as root, as it does under NetBSD's xdm: it has to read -XCOMM its -auth file (0600 root) and the console devices; as nobody it could -XCOMM do neither and the session could not open the display (2026-11-18). - :0 Local local_uid@console root /usr/X11R7/bin/X :0 +XCOMM The server runs as the pseudo-user, as CDE does on Solaris: it cannot +XCOMM read the root-only -auth file and therefore turns access control off, +XCOMM which is what lets the greeter and the session connect; the session's +XCOMM own cookie is ~/.Xauthority (dtlogin writes it). Running it as root +XCOMM made the parent's own connection fail ("no authorization protocol +XCOMM specified", 2026-11-18), so this stays as CDE has it. + :0 Local local@console /usr/X11R7/bin/X :0 #elif defined (__FreeBSD__) :0 Local local@console /usr/local/bin/X :0 #else