Xwayland not using XAUTHORITY, prevents root applications from connecting
Bug #1652282 reported by
Wise Melon
This bug affects 228 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GParted |
Fix Released
|
High
|
|||
Mutter |
Fix Released
|
Unknown
|
|||
gdm |
New
|
Unknown
|
|||
gparted (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
mutter (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
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:
openSUSE handles this issue with this patch (from the changelog, it looks like they implemented this for their YaST settings app):
https:/
Changed in gparted: | |
importance: | Unknown → Medium |
status: | Unknown → Confirmed |
summary: |
- GParted fails to run as root under Wayland + Wayland default policy prohibits root applications |
affects: | gparted (Ubuntu) → wayland (Ubuntu) |
Changed in wayland (Ubuntu): | |
status: | Incomplete → New |
Changed in gparted: | |
importance: | Medium → High |
Changed in gparted (Ubuntu): | |
importance: | Undecided → High |
status: | Confirmed → Triaged |
tags: | added: artful |
Changed in gparted: | |
status: | Confirmed → Fix Released |
Changed in gdm: | |
importance: | Unknown → Medium |
status: | Unknown → Confirmed |
summary: |
- GParted does not work in GNOME on Wayland + Xwayland not using XAUTHORITY, prevents root applications from + connecting |
affects: | wayland → balsa (Ubuntu) |
Changed in balsa (Ubuntu): | |
status: | New → Confirmed |
no longer affects: | balsa (Ubuntu) |
Changed in gdm: | |
status: | Confirmed → Expired |
Changed in gnome-shell (Ubuntu): | |
status: | New → Invalid |
Changed in gdm3 (Ubuntu): | |
status: | Confirmed → Won't Fix |
Changed in mutter (Ubuntu): | |
status: | Confirmed → Triaged |
status: | Triaged → In Progress |
tags: | added: fixed-in-3.33.3 fixed-upstream |
Changed in mutter: | |
status: | Unknown → Fix Released |
Changed in mutter (Ubuntu): | |
status: | In Progress → Fix Released |
Changed in gparted: | |
importance: | High → Unknown |
status: | Fix Released → Unknown |
no longer affects: | gdm3 (Ubuntu) |
no longer affects: | gnome-shell (Ubuntu) |
affects: | ubuntu-gnome → ubuntu |
no longer affects: | ubuntu |
Changed in gdm: | |
importance: | Medium → Unknown |
status: | Expired → Unknown |
Changed in gparted (Ubuntu): | |
status: | Invalid → Fix Released |
Changed in gparted: | |
importance: | Unknown → High |
status: | Unknown → Fix Released |
Changed in gdm: | |
status: | Unknown → New |
To post a comment you must log in.
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. system/ boot-efi. mount → /dev/null. system/ boot.mount → /dev/null. system/ run-user- 1000.mount → /dev/null. system/ run-user- 120.mount → /dev/null. system/ tmp.mount → /dev/null.
Created symlink /run/systemd/
Created symlink /run/systemd/
Created symlink /run/systemd/
Created symlink /run/systemd/
Created symlink /run/systemd/
No protocol specified
(gpartedbin :16832) : Gtk-WARNING **: cannot open display: :0 system/ -.mount. system/ boot-efi. mount. system/ boot.mount. system/ run-user- 1000.mount. system/ run-user- 120.mount. system/ tmp.mount.
Removed /run/systemd/
Removed /run/systemd/
Removed /run/systemd/
Removed /run/systemd/
Removed /run/systemd/
Removed /run/systemd/
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.