4

There was a similar question, but it was about Cygwin. My question is RDP. I set up XRDP on a Linux computer and used Windows' Remote Desktop Connection to connect to it. Inside of the RDP window, I opened the terminal, and typed sudo nautilus to run Files as root. But I got.

Authorization required, but no authorization protocol specified

(org.gnome.Nautilus:75012): Gtk-WARNING **: 08:40:24.020: cannot open display: :10.0

The accepted answer for the aforementioned question was typing $ DISPLAY=:0.0 xhost <remote_hostname_or_ip>, but when I tried DISPLAY=:0.0 xhost localhost, I got

xhost: unable to open display ":0.0"

If I try DISPLAY=:10.0 xhost localhost, I get

Authorization required, but no authorization protocol specified

xhost: unable to open display ":10.0"

Is there a way to solve this XRDP problem? This sudo password pop-up problem has been the single most pain-in-the-bottom, and no one seems to know the solution.

Damn Vegetables
  • 4,308
  • 19
  • 60
  • 98

2 Answers2

4

I had the same issue (at least I think so), and I believe, the solution that I found might help those passing by for the solution. The issue was related to the Wayland display server, under which running a GUI application with the root permissions fails. The simple way to resolve it is to add root to xhost. Run the following command line (under your user, i.e. without sudo).

xhost si:localuser:root

Some rightfully claim that this approach is a bit hacky for the security model of Wayland, and they suggest a solution with a non permanent change (see #594183).

Arseniy
  • 56
0

I am using Fedora and I was doing some openGL work when I faced this error. Using Arseniy's answer did not solve my problem.

My solution was restarting my display manager:

sudo systemctl restart display-manager
Akhil
  • 1