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).
This commit is contained in:
1 parent
7eb890e507
commit
9a950d0046
1 file changed
+7
-4
@@ -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
|
||||
|
||||
Reference in new issue
Block a user