Steps to reproduce:
1. Install Ubuntu 17.10
2. Install zenmap and menu package (see bug 1713274)
3. Try to launch zenmap from shortcut "Zenmap (as root)" (located in /usr/share/applications/zenmap-root.desktop)
4. Get error window:
Failed to run zenmap as user root.
Unable to copy the user's Xauthorization file.
artful@artful:~$ xhost +si:localuser:root
localuser:root being added to access control list
artful@artful:~$ gksudo zenmap
Error copying '/home/artful/.Xauthority' to '/tmp/libgksu-AgXCxW': No such file or directory
ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: zenmap 7.50-1
ProcVersionSignature: Ubuntu 4.12.0-11.12-generic 4.12.5
Uname: Linux 4.12.0-11-generic i686
ApportVersion: 2.20.6-0ubuntu7
Architecture: i386
CurrentDesktop: GNOME
Date: Sun Aug 27 13:28:31 2017
InstallationDate: Installed on 2017-08-26 (0 days ago)
InstallationMedia: Ubuntu 17.10 "Artful Aardvark" - Alpha i386 (20170826)
PackageArchitecture: all
SourcePackage: nmap
UpgradeStatus: No upgrade log present (probably fresh install)
Steps to reproduce: applications/ zenmap- root.desktop)
1. Install Ubuntu 17.10
2. Install zenmap and menu package (see bug 1713274)
3. Try to launch zenmap from shortcut "Zenmap (as root)" (located in /usr/share/
4. Get error window:
Failed to run zenmap as user root.
Unable to copy the user's Xauthorization file.
Expected results:
* nmap may be run as root
Actual results:
* unable to run zenmap as root
Additional info: BUS_ADDRESS= "unix:path= /run/user/ 1000/bus" AUTOSTART_ ID="1082dacfd3a 20e972150382958 079482700000012 280008" SESSION= "gnome" SESSION_ ID="this- is-deprecated" MANAGER= "local/ artful: @/tmp/. ICE-unix/ 1228,unix/ artful: /tmp/.ICE- unix/1228" DESKTOP= "GNOME" DESKTOP= "gnome" TYPE="wayland"
$ export | grep "SESSION\|DESK"
declare -x DBUS_SESSION_
declare -x DESKTOP_
declare -x DESKTOP_
declare -x GDMSESSION="gnome"
declare -x GNOME_DESKTOP_
declare -x SESSION_
declare -x XDG_CURRENT_
declare -x XDG_SESSION_
declare -x XDG_SESSION_ID="2"
declare -x XDG_SESSION_
and this operations does not help:
artful@artful:~$ xhost +si:localuser:root artful/ .Xauthority' to '/tmp/libgksu- AgXCxW' : No such file or directory
localuser:root being added to access control list
artful@artful:~$ gksudo zenmap
Error copying '/home/
ProblemType: Bug ature: Ubuntu 4.12.0- 11.12-generic 4.12.5 ture: all
DistroRelease: Ubuntu 17.10
Package: zenmap 7.50-1
ProcVersionSign
Uname: Linux 4.12.0-11-generic i686
ApportVersion: 2.20.6-0ubuntu7
Architecture: i386
CurrentDesktop: GNOME
Date: Sun Aug 27 13:28:31 2017
InstallationDate: Installed on 2017-08-26 (0 days ago)
InstallationMedia: Ubuntu 17.10 "Artful Aardvark" - Alpha i386 (20170826)
PackageArchitec
SourcePackage: nmap
UpgradeStatus: No upgrade log present (probably fresh install)