Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 369543 - net-analyzer/nmap-5.51 GUI (zenmap) doesn't start in root-mode when launched from KDE start menu
Summary: net-analyzer/nmap-5.51 GUI (zenmap) doesn't start in root-mode when launched ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal trivial (vote)
Assignee: Michal Januszewski (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-31 16:39 UTC by Roberto Vallega
Modified: 2011-06-12 22:37 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roberto Vallega 2011-05-31 16:39:26 UTC
Trying to run zenmap as root fails when using the menu entry in KDE4: once launched and prompted for the root password, kdesu exits with the message "Unable to run the command «'zenmap '»


Reproducible: Always

Steps to Reproduce:
1. Browse KDE4 apps menu
2. Click on «Internet → zenmap (as root)» to launch the nmap's GUI
3. Insert root password when prompted
Actual Results:  
zenmap fails to launch with the following error from kdesu: "Unable to run the command 'zenmap '"

Expected Results:  
zenmap's GUI shows up

Running "kdesu zenmap" from konsole is OK

Running "kdesu zenmap" from krunner (ALT+F2) is OK

Runniong zenmap as normal user from KDE apps menu is OK

The problem should lie in /usr/share/zenmap/su-to-zenmap.sh; when changing the line:
COMMAND="zenmap $@" 
in:
COMMAND="zenmap" 
the problem disappears.
Comment 1 Michal Januszewski (RETIRED) gentoo-dev 2011-06-11 20:50:19 UTC
Could you please check if removing the quotes around $COMMAND on lines 43 and 44 in su-to-zenmap.sh works for you?  The lines after the changes should read:

      kdesu) kdesu -u "$PRIV" $COMMAND;;
      kde4su) /usr/lib/kde4/libexec/kdesu -u "$PRIV" $COMMAND;;
Comment 2 Roberto Vallega 2011-06-12 19:11:22 UTC
(In reply to comment #1)
> Could you please check if removing the quotes around $COMMAND on lines 43 and
> 44 in su-to-zenmap.sh works for you?  The lines after the changes should read:
> 
>       kdesu) kdesu -u "$PRIV" $COMMAND;;
>       kde4su) /usr/lib/kde4/libexec/kdesu -u "$PRIV" $COMMAND;;

Yes, now it works for me...
Comment 3 Michal Januszewski (RETIRED) gentoo-dev 2011-06-12 22:37:16 UTC
Thanks for the confirmation, the fix is now in CVS.