zenmap: inconsistency between suggested package and method used for su-to-root/gksu

Bug #441962 reported by Dan Kortschak
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
nmap (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

Binary package hint: nmap

Menu launch of zenmap under zfce4 fails when suggested packages are installed due to inconsistency between suggestions and method for gaining root: package suggests 'gksu', menu entry tries su-to-root (provided by package 'menu'). For this reason, under the recommended installation, starting zenmap as su root from the menu fails to work.

$ lsb_release -rd
Description: Ubuntu 9.04
Release: 9.04

$ dpkg -l zenmap
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-==============-==============-============================================
ii zenmap 4.76-0ubuntu4 The Network Mapper Front End

$ apt-cache policy zenmap
zenmap:
  Installed: 4.76-0ubuntu4
  Candidate: 4.76-0ubuntu4
  Version table:
 *** 4.76-0ubuntu4 0
        500 http://mirror.internode.on.net jaunty/universe Packages
        100 /var/lib/dpkg/status

$ dpkg -s
dpkg-query: --status needs at least one package name argument

Use --help for help about querying packages;
Use --license for copyright license and lack of warranty (GNU GPL).

$ dpkg -s zenmap
Package: zenmap
Status: install ok installed
Priority: extra
Section: net
Installed-Size: 3184
Maintainer: Ubuntu Core Developers <email address hidden>
Architecture: i386
Source: nmap
Version: 4.76-0ubuntu4
Replaces: nmapfe
Provides: nmapfe
Depends: python, python-central (>= 0.6.11), nmap, python (>= 2.5) | python-pysqlite2, python-gtk2, python-gobject
Recommends: gksu
Conflicts: nmapfe
Description: The Network Mapper Front End
 Zenmap is an Nmap frontend. It is meant to be useful for advanced users
 and to make Nmap easy to use by beginners. It was originally derived
 from Umit, an Nmap GUI created as part of the Google Summer of Code.
Original-Maintainer: LaMont Jones <email address hidden>
Python-Version: all

Menu description file:

$ cat /usr/share/applications/zenmap-root.desktop
[Desktop Entry]
# The format of this file is specified at
# http://freedesktop.org/Standards/desktop-entry-spec/
# The entries are in the order they are listed in version 0.9.4
Type=Application
Version=1.0
Encoding=UTF-8
Name=Zenmap (as root)
GenericName=The Network Mapper Front End
GenericName[en_GB]=The Network Mapper Front End
GenericName[it]=Interfaccia per il Network Mapper
Comment=Network Mapper frontend
Icon=zenmap.xpm
TryExec=su-to-root
Exec=su-to-root -X -c /usr/bin/zenmap
Path=
Terminal=false
MimeType=
Categories=GNOME;Application;Network;

Changing 'Exec' attribute, or installing 'menu' fixes problem. Suggest either change recommended package or method used.

Revision history for this message
Chuck Short (zulcss) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. The issue that you reported is one that should be reproducible with the live environment of the Desktop CD of the development release - Karmic Koala. It would help us greatly if you could test with it so we can work on getting it fixed in the next release of Ubuntu. You can find out more about the development release at http://www.ubuntu.com/testing/. Thanks again and we appreciate your help.

Changed in nmap (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Dan Kortschak (dan-kortschak) wrote : Re: [Bug 441962] Re: zenmap: inconsistency between suggested package and method used for su-to-root/gksu

In the amd64 and i386 karmic packages the file in question is still
broken.

I don't have time to test the install (this tool is on a net book
required for work), but inspection of the package shows that the path in
the file in question (`/usr/share/applications/zenmap-root.desktop') now
attempts to point to a script that intelligently chooses which su-root
command to use (nice fix), however the file name for that script (from
inspection of the package should be `/usr/share/zenmap/su-to-zenmap.sh')
is incorrectly defined in the menu definition, reflecting the build
environment:
`/build/buildd/nmap-5.00/debian/tmp/usr/share/zenmap/su-to-zenmap.sh'

Sorry I can't test this, but I hope the information is helpful
nonetheless.

Chuck Short (zulcss)
Changed in nmap (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
zxalexis (zxalexis) wrote :

changed manually in /usr/share/applications/zenmap-root.desktop to this:

TryExec=gksudo zenmap
Exec=gksudo zenmap %F

and all works fine.
maybe this package needs replacing .desktop files for using gksudo (it is present in all *buntu spins and mixes)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.