9

I have just updated my OS from Ubuntu 20.04 LTS to 20.04.1 LTS. When I tried to run nautilus as root by using sudo nautilus, I get the error

Authorization required, but no authorization protocol specified

(org.gnome.Nautilus:4410): Gtk-WARNING **: 23:12:51.995: cannot open display: :10.0

This never occurred in Ubuntu 20.04 LTS. I'm trying to avoid reinstalling nautilus as much as possible to avoid breaking more things, but am running out ideas on what is wrong here.

Any suggestions?

Jacek
  • 571
  • 1
  • 3
  • 12

1 Answers1

16

Apparently the solution on this thread is able to solve my problem.

xhost + local:
Jacek
  • 571
  • 1
  • 3
  • 12
  • 2
    This means that any other local user is allowed to run programs in your X session, however network connections will not be allowed. So it's fine, provided you are the only local user, or you trust all the other local users. – AdamS Feb 19 '23 at 16:44