[Bug 1652282] Re: Xwayland not using XAUTHORITY, prevents root applications from connecting
** Changed in: gdm Status: Unknown => New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1652282 Title: Xwayland not using XAUTHORITY, prevents root applications from connecting To manage notifications about this bug go to: https://bugs.launchpad.net/gdm/+bug/1652282/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1652282] Re: Xwayland not using XAUTHORITY, prevents root applications from connecting
Launchpad has imported 30 comments from the remote bug at https://bugzilla.gnome.org/show_bug.cgi?id=776437. If you reply to an imported comment from within Launchpad, your comment will be sent to the remote bug automatically. Read more about Launchpad's inter-bugtracker facilities at https://help.launchpad.net/InterBugTracking. On 2016-12-23T11:45:26+00:00 Wise Melon wrote: I have found that after switching from Xorg to Wayland on Ubuntu GNOME 16.10 with GNOME 3.22 that GParted does not run when I try to run it as root. That is when I click the icon and enter my password nothing happens. I have found that when running what is run when the icon is clicked that the output in Terminal is (gparted-pkexec): Created symlink /run/systemd/system/-.mount → /dev/null. Created symlink /run/systemd/system/boot-efi.mount → /dev/null. Created symlink /run/systemd/system/boot.mount → /dev/null. Created symlink /run/systemd/system/run-user-1000.mount → /dev/null. Created symlink /run/systemd/system/run-user-120.mount → /dev/null. Created symlink /run/systemd/system/tmp.mount → /dev/null. No protocol specified (gpartedbin:16832): Gtk-WARNING **: cannot open display: :0 Removed /run/systemd/system/-.mount. Removed /run/systemd/system/boot-efi.mount. Removed /run/systemd/system/boot.mount. Removed /run/systemd/system/run-user-1000.mount. Removed /run/systemd/system/run-user-120.mount. Removed /run/systemd/system/tmp.mount. So I am now unable to launch and use GParted as root which is really the only way I can run it in order to make changes. I originally reported this issue here: https://bugs.launchpad.net/ubuntu/+source/gparted/+bug/1652282 But thought I should also do so upstream. Reply at: https://bugs.launchpad.net/gparted/+bug/1652282/comments/2 On 2017-01-02T11:20:07+00:00 Mike Fleetwood wrote: This is a known limitation and design choice that Wayland doesn't allow root privileged applications to work. One workaround is to run the following in a terminal before running GParted to allow root applications to connect to the X server under Wayland. xhost +si:localuser:root Another workaround it to continue to use the X.org display server rather than the Wayland display server. More information can be found in the: Common Fedora 25 Bugs / Running graphical apps with root privileges (e.g. gparted) does not work on Wayland https://fedoraproject.org/wiki/Common_F25_bugs#wayland-root-apps Reply at: https://bugs.launchpad.net/gparted/+bug/1652282/comments/3 On 2017-01-02T11:21:24+00:00 Mike Fleetwood wrote: *** Bug 776707 has been marked as a duplicate of this bug. *** Reply at: https://bugs.launchpad.net/gparted/+bug/1652282/comments/4 On 2017-01-04T22:51:55+00:00 Nate Graham wrote: Those workarounds are fine for now, but the real solution to boldly move us all into the Wayland future is to make GParted run its main UI as a normally-privileged user, and only request elevated permissions for actions that actually require them. Reply at: https://bugs.launchpad.net/gparted/+bug/1652282/comments/5 On 2017-01-05T16:27:10+00:00 Curtis Gedak wrote: Hi Nate, For past discussion on this issue, see also: Bug 758131 - Don't run GUI as root (Was: [wayland] gparted fails to start under wayland) Curtis Reply at: https://bugs.launchpad.net/gparted/+bug/1652282/comments/6 On 2017-01-06T03:20:53+00:00 Nate Graham wrote: > All the code is predicated on a single process querying the storage, > running the GUI and manipulating the storage. It would be a very large > task to change. For a spare time only hobby this might never get done. Sadly that will eventually result in GParted dying as more and more distros move to Wayland. :( Reply at: https://bugs.launchpad.net/gparted/+bug/1652282/comments/7 On 2017-03-01T20:17:11+00:00 Erkin Alp Güney wrote: > For a spare time only hobby this might never get done. Curtis, transferring maintenance of GParted to GNU or GNOME teams would solve that. They have long queues for maintenance requests and it is able to finish the process (find a full time maintainer) in a fortnight. Reply at: https://bugs.launchpad.net/gparted/+bug/1652282/comments/11 On 2017-05-08T12:35:18+00:00 Gnome-4 wrote: (In reply to Erkin Alp Güney from comment #6) > > For a spare time only hobby this might never get done. > > Curtis, transferring
[Bug 1652282] Re: Xwayland not using XAUTHORITY, prevents root applications from connecting
** Bug watch added: bugzilla.gnome.org/ #776437 https://bugzilla.gnome.org/show_bug.cgi?id=776437 ** Changed in: gparted Importance: High => Unknown ** Changed in: gparted Status: Fix Released => Unknown ** Changed in: gparted Remote watch: GNOME Bug Tracker #776437 => bugzilla.gnome.org/ #776437 ** No longer affects: gdm3 (Ubuntu) ** No longer affects: gnome-shell (Ubuntu) ** Project changed: ubuntu-gnome => ubuntu ** No longer affects: ubuntu ** Bug watch added: gitlab.gnome.org/GNOME/gdm/issues #342 https://gitlab.gnome.org/GNOME/gdm/issues/342 ** Changed in: gdm Importance: Medium => Unknown ** Changed in: gdm Status: Expired => Unknown ** Changed in: gdm Remote watch: GNOME Bug Tracker #789867 => gitlab.gnome.org/GNOME/gdm/issues #342 ** Changed in: gparted (Ubuntu) Status: Invalid => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1652282 Title: Xwayland not using XAUTHORITY, prevents root applications from connecting To manage notifications about this bug go to: https://bugs.launchpad.net/gdm/+bug/1652282/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1652282] Re: Xwayland not using XAUTHORITY, prevents root applications from connecting
** Changed in: mutter (Ubuntu) Status: In Progress => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1652282 Title: Xwayland not using XAUTHORITY, prevents root applications from connecting To manage notifications about this bug go to: https://bugs.launchpad.net/gdm/+bug/1652282/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1652282] Re: Xwayland not using XAUTHORITY, prevents root applications from connecting
** Changed in: mutter Status: Unknown => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1652282 Title: Xwayland not using XAUTHORITY, prevents root applications from connecting To manage notifications about this bug go to: https://bugs.launchpad.net/gdm/+bug/1652282/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1652282] Re: Xwayland not using XAUTHORITY, prevents root applications from connecting
** Changed in: gdm3 (Ubuntu) Status: Confirmed => Won't Fix ** Changed in: mutter (Ubuntu) Status: Confirmed => Triaged ** Changed in: mutter (Ubuntu) Status: Triaged => In Progress ** Tags added: fixed-in-3.33.3 fixed-upstream -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1652282 Title: Xwayland not using XAUTHORITY, prevents root applications from connecting To manage notifications about this bug go to: https://bugs.launchpad.net/gdm/+bug/1652282/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1652282] Re: Xwayland not using XAUTHORITY, prevents root applications from connecting
Sounds like a fix is on the way: https://gitlab.gnome.org/GNOME/mutter/merge_requests/626 ** Bug watch added: gitlab.gnome.org/GNOME/mutter/issues #643 https://gitlab.gnome.org/GNOME/mutter/issues/643 ** Also affects: mutter via https://gitlab.gnome.org/GNOME/mutter/issues/643 Importance: Unknown Status: Unknown ** Tags removed: artful yakkety -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1652282 Title: Xwayland not using XAUTHORITY, prevents root applications from connecting To manage notifications about this bug go to: https://bugs.launchpad.net/gdm/+bug/1652282/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1652282] Re: Xwayland not using XAUTHORITY, prevents root applications from connecting
I'm only recently familiar with the Mutter design, but... Mutter is the graphics platform on which gnome-shell is built. Mutter supports running under a Xorg server, or none at all on bare metal (Wayland mode). So in order to provide a seamless consistent interface in the latter case it spawns Xwayland, which allows X apps to work with Wayland even when Mutter's not running on Xorg. In this way, any shell built on Mutter has the option to use Xorg or Wayland, and if using Wayland can still transparently run X apps. "Clutter" is the graphics toolkit on which Mutter is built. "Cogl" is the graphics toolkit on which Clutter is built. Cogl uses OpenGL directly. Yes, that's probably too many layers but that's how things evolved. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1652282 Title: Xwayland not using XAUTHORITY, prevents root applications from connecting To manage notifications about this bug go to: https://bugs.launchpad.net/gdm/+bug/1652282/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 1652282] Re: Xwayland not using XAUTHORITY, prevents root applications from connecting
On 8/21/2018 9:34 PM, Daniel van Vugt wrote: > Phillip, > > Mutter is not just a binary, but is also the library which provides ALL > the graphics for the login screen and gnome-shell. So yes Ubuntu does > use mutter for everything :) Ohh... I thought it was an alternative light weight compositing window manager similar to compiz. Or was that clutter? I'm not sure why taking care of spawning Xwayland would be in the compositing graphics library. > If your Wayland login option has gone missing then that means the > Wayland backend ("eglnative") of mutter had crashed during startup and > so has been disabled. Please log a NEW bug for that by running: Will do. Happens in a virtual machine so should be easy to reproduce. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1652282 Title: Xwayland not using XAUTHORITY, prevents root applications from connecting To manage notifications about this bug go to: https://bugs.launchpad.net/gdm/+bug/1652282/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1652282] Re: Xwayland not using XAUTHORITY, prevents root applications from connecting
** Changed in: gnome-shell (Ubuntu) Status: New => Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1652282 Title: Xwayland not using XAUTHORITY, prevents root applications from connecting To manage notifications about this bug go to: https://bugs.launchpad.net/gdm/+bug/1652282/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1652282] Re: Xwayland not using XAUTHORITY, prevents root applications from connecting
Phillip, Mutter is not just a binary, but is also the library which provides ALL the graphics for the login screen and gnome-shell. So yes Ubuntu does use mutter for everything :) If your Wayland login option has gone missing then that means the Wayland backend ("eglnative") of mutter had crashed during startup and so has been disabled. Please log a NEW bug for that by running: ubuntu-bug gnome-shell on the machine. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1652282 Title: Xwayland not using XAUTHORITY, prevents root applications from connecting To manage notifications about this bug go to: https://bugs.launchpad.net/gdm/+bug/1652282/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1652282] Re: Xwayland not using XAUTHORITY, prevents root applications from connecting
Ubuntu doesn't use mutter by default though ( is that what lubuntu uses? ). I looked at this again today and for some reason gdm isn't giving the option to log in with a wayland session. I switched to lightdm and it appears to not bother with Xwayland and just runs gnome-shell, and gnome-shell in turn spawns Xwayland, so *it* needs patched to add XAUTHORITY too. ** Also affects: gnome-shell (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1652282 Title: Xwayland not using XAUTHORITY, prevents root applications from connecting To manage notifications about this bug go to: https://bugs.launchpad.net/gdm/+bug/1652282/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1652282] Re: Xwayland not using XAUTHORITY, prevents root applications from connecting
I updated the bug description to point to how openSUSE handles this bug and opened a mutter task in case we want to copy it. ** Also affects: mutter (Ubuntu) Importance: Undecided Status: New ** Description changed: When running wayland, GDM fails to set up an XAUTHORITY file and instead relies on the process UID for authentication. This prevents applications run as root, like gparted or synaptic from connecting to the server. GDM needs to set up the XAUTHORITY file when running Xwayland just like it does when it runs the conventional Xorg. A large list of applications broken by this can be found here: https://codesearch.debian.net/search?q=Exec%3Dsu-to- root+filetype%3Adesktop+path%3A*%2Fapplications%2F*=1 + + openSUSE handles this issue with this patch (from the changelog, it looks like they implemented this for their YaST settings app): + https://build.opensuse.org/package/view_file/GNOME:Factory/mutter/mutter-xwayland-create-xauthority.patch?expand=1 ** Changed in: mutter (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1652282 Title: Xwayland not using XAUTHORITY, prevents root applications from connecting To manage notifications about this bug go to: https://bugs.launchpad.net/gdm/+bug/1652282/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1652282] Re: Xwayland not using XAUTHORITY, prevents root applications from connecting
The official upstream GNOME bug has been moved to here: https://gitlab.gnome.org/GNOME/gdm/issues/342 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1652282 Title: Xwayland not using XAUTHORITY, prevents root applications from connecting To manage notifications about this bug go to: https://bugs.launchpad.net/gdm/+bug/1652282/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1652282] Re: Xwayland not using XAUTHORITY, prevents root applications from connecting
The official upstream GNOME bug has been moved to here: https://gitlab.gnome.org/GNOME/gdm/issues/342 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1652282 Title: Xwayland not using XAUTHORITY, prevents root applications from connecting To manage notifications about this bug go to: https://bugs.launchpad.net/gdm/+bug/1652282/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1652282] Re: Xwayland not using XAUTHORITY, prevents root applications from connecting
** Changed in: gdm Status: Confirmed => Expired -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1652282 Title: Xwayland not using XAUTHORITY, prevents root applications from connecting To manage notifications about this bug go to: https://bugs.launchpad.net/gdm/+bug/1652282/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1652282] Re: Xwayland not using XAUTHORITY, prevents root applications from connecting
Because a non-root program can then use X11 to make that root program do things you don't want. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1652282 Title: Xwayland not using XAUTHORITY, prevents root applications from connecting To manage notifications about this bug go to: https://bugs.launchpad.net/gdm/+bug/1652282/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1652282] Re: Xwayland not using XAUTHORITY, prevents root applications from connecting
How is not properly setting up the session, and preventing root from showing things on the display, "for security"? root, by definition, has the ability to do anything anywhere on the system. Including reading and writing other users' files; reading and writing the memory of processes (and FD's and environment and ...) from other users, etc. Adding extra steps is not security, it's just making things more difficult for users. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1652282 Title: Xwayland not using XAUTHORITY, prevents root applications from connecting To manage notifications about this bug go to: https://bugs.launchpad.net/gdm/+bug/1652282/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1652282] Re: Xwayland not using XAUTHORITY, prevents root applications from connecting
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: gdm3 (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1652282 Title: Xwayland not using XAUTHORITY, prevents root applications from connecting To manage notifications about this bug go to: https://bugs.launchpad.net/gdm/+bug/1652282/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1652282] Re: Xwayland not using XAUTHORITY, prevents root applications from connecting
It has been widely publicized at least since Fedora 25's release a year ago that GNOME on Wayland does not support running GUI apps as root. It has long been best practice for apps to not do this. Instead of trying to implement clever workarounds, app developers should follow best practice here. Would you like to submit a patch for sudo? The GDM maintainer Ray Strode rightfully believes that it is wrong (i.e. Won't Fix) to have XWayland support running apps as root as long as Wayland does not. Therefore, someone will need to have a proposed fix for that issue first before worrying about XWayland. At this point, I don't believe that Ubuntu intends to diverge from upstream on this issue, so to some extent, Won't Fix is appropriate here too. So fix things upstream instead of complaining to Debian and Ubuntu. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1652282 Title: Xwayland not using XAUTHORITY, prevents root applications from connecting To manage notifications about this bug go to: https://bugs.launchpad.net/gdm/+bug/1652282/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1652282] Re: Xwayland not using XAUTHORITY, prevents root applications from connecting
On 12/7/2017 3:39 PM, Jeremy Bicha wrote: > $ sudo su > root@mycomputer:/home/me# gedit > No protocol specified > Unable to init server: Could not connect: Connection refused > > (gedit:4492): Gtk-WARNING **: cannot open display: :0 sudo defaults to scrubbing the environment; use sudo -E gedit instead of sudo su. Or on Debian just use su without the - argument. sudo was explicitly configured to not scrub DISPLAY so that users can still run X11 applications after sudoing, but has not been updated to include WAYLAND_DISPLAY in that list. You can also of course, simply set WAYLAND_DISPLAY after sudoing to root. > Therefore, I'm closing this bug. Sorry. I'm sorry, but as long as the man page for gdm says that it will configure an XAUTHORITY and it does not, this is ipso facto, a bug, whatever you think about gui applications running as root. If this really was an intentional change upstream, they should document it in the NEWS and man page. I certainly have not been able to find anything in the changelog or git commit history that indicates this was intentional, and of course, the man page should be updated to match the new implementation if it was intended. ** Changed in: gdm3 (Ubuntu) Status: Won't Fix => New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1652282 Title: Xwayland not using XAUTHORITY, prevents root applications from connecting To manage notifications about this bug go to: https://bugs.launchpad.net/gdm/+bug/1652282/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1652282] Re: Xwayland not using XAUTHORITY, prevents root applications from connecting
> And that's the problem here. When gparted is ported to gtk3, the > xhost workaround will stop working. When/if GParted is ported to gtk3, THEN the work around can be removed. In the mean time the xhost workaround enables people to continue using GParted. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1652282 Title: Xwayland not using XAUTHORITY, prevents root applications from connecting To manage notifications about this bug go to: https://bugs.launchpad.net/gdm/+bug/1652282/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1652282] Re: Xwayland not using XAUTHORITY, prevents root applications from connecting
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: balsa (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1652282 Title: Xwayland not using XAUTHORITY, prevents root applications from connecting To manage notifications about this bug go to: https://bugs.launchpad.net/gdm/+bug/1652282/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1652282] Re: Xwayland not using XAUTHORITY, prevents root applications from connecting
** Project changed: wayland => balsa (Ubuntu) ** No longer affects: balsa (Ubuntu) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1652282 Title: Xwayland not using XAUTHORITY, prevents root applications from connecting To manage notifications about this bug go to: https://bugs.launchpad.net/gdm/+bug/1652282/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1652282] Re: Xwayland not using XAUTHORITY, prevents root applications from connecting
$ sudo su root@mycomputer:/home/me# gedit No protocol specified Unable to init server: Could not connect: Connection refused (gedit:4492): Gtk-WARNING **: cannot open display: :0 = And that's the problem here. When gparted is ported to gtk3, the xhost workaround will stop working. And there's no incentive for GNOME to fix apps to run as root under XWayland, if they won't be able to under Wayland. GNOME wants to *encourage* apps to upgrade from gtk2 to gtk3 to get native Wayland support, better HiDPI support and several other features and improvements. Therefore, I'm closing this bug. Sorry. ** Changed in: ubuntu-gnome Status: Triaged => Invalid ** Changed in: gdm3 (Ubuntu) Status: New => Won't Fix -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1652282 Title: Xwayland not using XAUTHORITY, prevents root applications from connecting To manage notifications about this bug go to: https://bugs.launchpad.net/gdm/+bug/1652282/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1652282] Re: Xwayland not using XAUTHORITY, prevents root applications from connecting
No, it is NOT the new standard since as I have said, wayland apps have no issue running as root. Applications will NOT be totally rewritten to split off the parts that need root into a separate program. YOU stop changing the title, YOU are being a nuisance: this does not just affect gparted. In fact, gparted has now worked around the issue by automatically running xhost to fix the broken configuration. Jeremy, you can easily see it is true by simply suing to root and running any native wayland ( gdm3 ) application ( like gedit ). It works just fine. As long as gdm3 continues to NOT perform the Xauthority configuration its man page says it is supposed to, it is a bug in gdm3. ** Also affects: gdm3 (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1652282 Title: Xwayland not using XAUTHORITY, prevents root applications from connecting To manage notifications about this bug go to: https://bugs.launchpad.net/gdm/+bug/1652282/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1652282] Re: Xwayland not using XAUTHORITY, prevents root applications from connecting
Wayland is now looking into this Dont know what they will do yet.In the meantime I have found that if you insert (xhost si:localuser:root) into start up applications it will work without having to do it in terminal every time you start up. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1652282 Title: Xwayland not using XAUTHORITY, prevents root applications from connecting To manage notifications about this bug go to: https://bugs.launchpad.net/gdm/+bug/1652282/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1652282] Re: Xwayland not using XAUTHORITY, prevents root applications from connecting
@Jeremy, Yes, from what I've heard, that doesn't sound quite right either. However I really have no idea so I'll let you guys deal with this. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1652282 Title: Xwayland not using XAUTHORITY, prevents root applications from connecting To manage notifications about this bug go to: https://bugs.launchpad.net/gdm/+bug/1652282/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1652282] Re: Xwayland not using XAUTHORITY, prevents root applications from connecting
> Wayland applications running as root work just fine under Wayland. It is X11 applications that do not work I don't think that's true. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1652282 Title: Xwayland not using XAUTHORITY, prevents root applications from connecting To manage notifications about this bug go to: https://bugs.launchpad.net/gdm/+bug/1652282/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1652282] Re: Xwayland not using XAUTHORITY, prevents root applications from connecting
Ok, it worked now. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1652282 Title: Xwayland not using XAUTHORITY, prevents root applications from connecting To manage notifications about this bug go to: https://bugs.launchpad.net/gdm/+bug/1652282/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1652282] Re: Xwayland not using XAUTHORITY, prevents root applications from connecting
@Phillip, I am afraid that this is the new standard and it's not going to change. Just use Xorg if you don't like it. But anyway, soon applications will all upgrade their source code, and then when they meet the set requirements they will all work as before. Just more securely. So please stop changing the title. You're just being a nuisance. ** Summary changed: - Xwayland not using XAUTHORITY, prevents root applications from connecting + GParted does not work in GNOME on Wayland -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1652282 Title: Xwayland not using XAUTHORITY, prevents root applications from connecting To manage notifications about this bug go to: https://bugs.launchpad.net/gdm/+bug/1652282/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1652282] Re: Xwayland not using XAUTHORITY, prevents root applications from connecting
** Summary changed: - GParted does not work in GNOME on Wayland + Xwayland not using XAUTHORITY, prevents root applications from connecting -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1652282 Title: Xwayland not using XAUTHORITY, prevents root applications from connecting To manage notifications about this bug go to: https://bugs.launchpad.net/gdm/+bug/1652282/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1652282] Re: Xwayland not using XAUTHORITY, prevents root applications from connecting
I am afraid that this is a Wayland security feature and that it is not going to be removed just because some users don't like it or don't understand why it is there. As a workaround you can just carry on using Xorg, but under Wayland the program has to be adapted in order not to run the whole program and GUI as root but rather just the specific things within it that need that. I'm not sure that there actually is anything the Ubuntu people can actually do about this though unless they hack at Wayland and make it less secure. If you want to change Wayland then file an upstream report about this. Ubuntu is really just packaging and redistributing this stuff. ** Changed in: gparted (Ubuntu) Status: Invalid => Confirmed ** Summary changed: - Xwayland not using XAUTHORITY, prevents root applications from connecting + GParted does not work in GNOME on Wayland ** Tags added: yakkety ** Description changed: - When running wayland, GDM fails to set up an XAUTHORITY file and instead - relies on the process UID for authentication. This prevents - applications run as root, like gparted or synaptic from connecting to - the server. GDM needs to set up the XAUTHORITY file when running - Xwayland just like it does when it runs the conventional Xorg. + I have found that after switching from Xorg to Wayland on Ubuntu GNOME + 16.10 with GNOME 3.22 that GParted does not run when I try to run it as + root. That is when I click the icon and enter my password nothing + happens. I have found that when running what is run when the icon is + clicked that the output in Terminal is (gparted-pkexec): + + Created symlink /run/systemd/system/-.mount → /dev/null. + Created symlink /run/systemd/system/boot-efi.mount → /dev/null. + Created symlink /run/systemd/system/boot.mount → /dev/null. + Created symlink /run/systemd/system/run-user-1000.mount → /dev/null. + Created symlink /run/systemd/system/run-user-120.mount → /dev/null. + Created symlink /run/systemd/system/tmp.mount → /dev/null. + No protocol specified + + (gpartedbin:16832): Gtk-WARNING **: cannot open display: :0 + Removed /run/systemd/system/-.mount. + Removed /run/systemd/system/boot-efi.mount. + Removed /run/systemd/system/boot.mount. + Removed /run/systemd/system/run-user-1000.mount. + Removed /run/systemd/system/run-user-120.mount. + Removed /run/systemd/system/tmp.mount. + + So I am now unable to launch and use GParted as root which is really the + only way I can run it in order to make changes. + + ProblemType: Bug + DistroRelease: Ubuntu 16.10 + Package: gparted 0.25.0-1 + ProcVersionSignature: Ubuntu 4.8.0-32.34-generic 4.8.11 + Uname: Linux 4.8.0-32-generic x86_64 + ApportVersion: 2.20.3-0ubuntu8.2 + Architecture: amd64 + CurrentDesktop: GNOME + Date: Fri Dec 23 11:13:13 2016 + InstallationDate: Installed on 2016-05-15 (221 days ago) + InstallationMedia: Ubuntu-GNOME 15.10 "Wily Werewolf" - Release amd64 (20151021) + SourcePackage: gparted + UpgradeStatus: Upgraded to yakkety on 2016-10-19 (64 days ago) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1652282 Title: GParted does not work in GNOME on Wayland To manage notifications about this bug go to: https://bugs.launchpad.net/gdm/+bug/1652282/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1652282] Re: Xwayland not using XAUTHORITY, prevents root applications from connecting
It is a shame that you are unwilling to make a simple configuration change to prevent a completely broken experience for your users. People get very frustrated when they try to open an application and nothing happens. No error message; nothing. All because of a silly default policy. This is not a very Ubuntu thing to do. ** Bug watch added: GNOME Bug Tracker #789867 https://bugzilla.gnome.org/show_bug.cgi?id=789867 ** Also affects: gdm via https://bugzilla.gnome.org/show_bug.cgi?id=789867 Importance: Unknown Status: Unknown -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1652282 Title: Xwayland not using XAUTHORITY, prevents root applications from connecting To manage notifications about this bug go to: https://bugs.launchpad.net/gdm/+bug/1652282/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1652282] Re: Xwayland not using XAUTHORITY, prevents root applications from connecting
@Dave Stroud, If you spend a few minutes to create/install/modify some file(s), for example 'gks' according to my previous comment, you need not type 'xhost si:localuser:root' every time you boot up. 1. Some of us think that this is an unnecessary complication or worse, 2. Some of us think that it is an important step to increase the security, to prevent GUI programs to run with elevated permissions. The developers of Wayland belong to the second group ;-) -o- I think that the main linux distros will gradually adjust to the opinion of their users ... -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1652282 Title: Xwayland not using XAUTHORITY, prevents root applications from connecting To manage notifications about this bug go to: https://bugs.launchpad.net/gparted/+bug/1652282/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1652282] Re: Xwayland not using XAUTHORITY, prevents root applications from connecting
(xhost si:localuser:root) Is a work around I found on fedora forum. Only problem is it has to be used every time you boot up.This is happening with any program that uses root. It is a game breaker for wayland. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1652282 Title: Xwayland not using XAUTHORITY, prevents root applications from connecting To manage notifications about this bug go to: https://bugs.launchpad.net/gparted/+bug/1652282/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1652282] Re: Xwayland not using XAUTHORITY, prevents root applications from connecting
Philip, please file a bug with GNOME about that issue. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1652282 Title: Xwayland not using XAUTHORITY, prevents root applications from connecting To manage notifications about this bug go to: https://bugs.launchpad.net/gparted/+bug/1652282/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1652282] Re: Xwayland not using XAUTHORITY, prevents root applications from connecting
There are workarounds for GUI programs with elevated permissions in Wayland. See these links https://askubuntu.com/questions/961967/why-dont-gksu-gksudo-or- launching-a-graphical-application-with-sudo-work-with-w https://wiki.ubuntu.com/Wayland/gks -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1652282 Title: Xwayland not using XAUTHORITY, prevents root applications from connecting To manage notifications about this bug go to: https://bugs.launchpad.net/gparted/+bug/1652282/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs