Article 53YKT Why does xhost + work and xhost +si:localhost:root not ?

Why does xhost + work and xhost +si:localhost:root not ?

by
Arno_H
from LinuxQuestions.org on (#53YKT)
I have installed a fresh Debian installation on my computer:
#lsb_release -a
No LSB modules are available.
Distributor ID:Debian
Description:Debian GNU/Linux 10 (buster)
Release:10
Codename:buster

#uname -mrs
Linux 4.19.0-9-amd64 x86_64

Sometimes I use a graphical interface to execute some system management work. Before executing the sudo su command, I type xhost + and everything works OK. I know that it is not great from a security point of view to oen the X display to everyone, so I would rather execute xhost +si:localhost:root to have the X display only available for me as superuser. However, when I execute this command, I get the following output:
localhost:root being added to access control list
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 109 (X_ChangeHosts)
Value in failed request: 0xe
Serial number of failed request: 7
Current serial number in output stream: 9

What do I need to do to fix this?latest?d=yIl2AUoC8zA latest?i=RCPSf8ZLKok:guXbNrxchYc:F7zBnMy latest?i=RCPSf8ZLKok:guXbNrxchYc:V_sGLiP latest?d=qj6IDK7rITs latest?i=RCPSf8ZLKok:guXbNrxchYc:gIN9vFwRCPSf8ZLKok
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments