cannot run GUI application programs with elevated permissions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
xorg-server (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
This bug appears, when I try to run GUI application programs with elevated permissions using sudo -H and gksudo in an installed Ubuntu Artful system on Wayland.
I discovered it while testing mkusb: version 12 alias mkusb-dus works because the GUI is running as the regular user. Only the executing scripts are running with elevated permissions; version 11 with the classic interface fails.
During the troubleshooting I discovered that no GUI application works. I tested xterm, nautilus and even gparted, which is made to run in graphics mode with elevated permissions, and none of them works.
-----
tester@
[sudo] password for tester:
No protocol specified
Warning: This program is an suid-root program or is being run by the root user.
The full text of the error or warning message cannot be safely formatted
in this environment. You may get a more descriptive message by running the
program as a non-root user or by removing the suid bit on the executable.
xterm: Xt error: Can't open display: %s
tester@
No protocol specified
Unable to init server: Could not connect: Connection refused
(nautilus:7987): Gtk-WARNING **: cannot open display: :0
tester@
Created symlink /run/systemd/
Created symlink /run/systemd/
Created symlink /run/systemd/
Created symlink /run/systemd/
Created symlink /run/systemd/
No protocol specified
(gpartedbin:8044): Gtk-WARNING **: cannot open display: :0
Removed /run/systemd/
Removed /run/systemd/
Removed /run/systemd/
Removed /run/systemd/
Removed /run/systemd/
tester@
Error copying '/home/
tester@
Error copying '/home/
tester@
Error copying '/home/
-----
The corresponding commands work in a live system, which is not running on Wayland. So I suspect that this bug is due to Wayland.
ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: xwayland 2:1.19.3-1ubuntu2
ProcVersionSign
Uname: Linux 4.11.0-10-generic x86_64
ApportVersion: 2.20.6-0ubuntu4
Architecture: amd64
CompizPlugins: No value set for `/apps/
CompositorRunning: None
CurrentDesktop: GNOME
Date: Mon Jul 24 20:26:54 2017
DistUpgraded: Fresh install
DistroCodename: artful
DistroVariant: ubuntu
ExtraDebuggingI
GraphicsCard:
Intel Corporation 3rd Gen Core processor Graphics Controller [8086:0166] (rev 09) (prog-if 00 [VGA controller])
Subsystem: Toshiba America Info Systems 3rd Gen Core processor Graphics Controller [1179:fb31]
InstallationDate: Installed on 2017-07-17 (6 days ago)
InstallationMedia: Ubuntu 17.10 "Artful Aardvark" - Alpha amd64 (20170716)
MachineType: TOSHIBA SATELLITE PRO C850-19W
ProcKernelCmdLine: BOOT_IMAGE=
SourcePackage: xorg-server
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 09/24/2012
dmi.bios.vendor: Insyde Corp.
dmi.bios.version: 6.10
dmi.board.
dmi.board.name: PLCSF8
dmi.board.vendor: Intel
dmi.board.version: Type2 - Board Version
dmi.chassis.
dmi.chassis.type: 10
dmi.chassis.vendor: OEM Chassis Manufacturer
dmi.chassis.
dmi.modalias: dmi:bvnInsydeCo
dmi.product.name: SATELLITE PRO C850-19W
dmi.product.
dmi.sys.vendor: TOSHIBA
version.compiz: compiz N/A
version.ia32-libs: ia32-libs N/A
version.libdrm2: libdrm2 2.4.81-2
version.
version.
version.
version.
version.
version.
version.
version.
description: | updated |
description: | updated |
tester@ tester- SATELLITE- PRO-C850- 19W:~$ apt-cache policy xwayland se.archive. ubuntu. com/ubuntu artful/main amd64 Packages dpkg/status
xwayland:
Installed: 2:1.19.3-1ubuntu2
Candidate: 2:1.19.3-1ubuntu2
Version table:
*** 2:1.19.3-1ubuntu2 500
500 http://
100 /var/lib/