Sudo nautilus gives Authorization required, but no authorization protocol specified
Asked Answered
T

1

12

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?

Tipster answered 25/8, 2022 at 15:28 Comment(0)
T
23

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

xhost + local:
Tipster answered 30/8, 2022 at 2:40 Comment(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.Molli
as well this works too xhost si:localuser:root adding localuser:root being added to access control listGeisel

© 2022 - 2024 — McMap. All rights reserved.