Description of problem: When install Fedora 25, Sudo supports run GUIs. But after update it doesnt!! This is message for (sudo nautilus): >[moceap@localhost ~]$ sudo nautilus >[sudo] password for moceap: >No protocol specified >Unable to init server: Could not connect: Connection refused > >(nautilus:3749): Gtk-WARNING **: cannot open display: :0 Version-Release number of selected component (if applicable): 1.8.18p1-1.fc25 How reproducible: Steps to Reproduce: 1. Install Fedora 25 2. Update by (dnf update) 3. Run any GUI by sudo like (sudo nautilus) Actual results: GUI not run!!! Expected results: GUI run with sudo rules. Additional info: I asked for Wayland bugs, they said it's not from Wayland. https://bugs.freedesktop.org/show_bug.cgi?id=99371
It seems like it is working now in latest fedora.
*** Bug 1403041 has been marked as a duplicate of this bug. ***
My Fedora is 26 , up to date .. Anf bug still found .
So tell me what are you using. Wayland? Gnome? Is it default sudoers or not? It is working for me. I have default sudoers/Xorg/awesome windows manager. It's Fedora26 x86_64.
BTW: xhost +local: should resolve this issue.
It's not enough
Here is an explanation why is that so: https://bugzilla.gnome.org/show_bug.cgi?id=772875 I'm closing this bugzilla as NOTABUG.
If you want to use Nautilus and access root-owned files, you can use the `admin:` URI It'll do a privilege escalation without running the whole app as root Additionally, any GTK application will be able to open root-owned files when using the `admin:` URI