Results 1 to 7 of 7

Thread: Zenmap as root in KDE (11.4)

  1. #1

    Default Zenmap as root in KDE (11.4)

    I have installed nmap/zenmap from rpms in 11.4.

    Zenmap as root runs fine from the CLI, but when launched from the KDE Kickoff Application Launcher I get a message back

    Cannot execute command ' 'zenmap "

    'which zenmap' finds zenmap in /usr/bin no problem.

    Anyone else have this issue?

  2. #2
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,721

    Default Re: Zenmap as root in KDE (11.4)

    Code:
    ls -l /usr/bin/zenmap
    will show who is allowed to execute.
    Henk van Velden

  3. #3
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    10,730

    Default Re: Zenmap as root in KDE (11.4)

    On 04/02/2011 12:36 PM, colbec wrote:
    >
    > Cannot execute command ' 'zenmap "
    > 'which zenmap' finds zenmap in /usr/bin no problem.


    is the icon you are clicking on set to launch zenmap as root?

    depending on where the icon is, right click the it, pick "Icon
    Settings", find the "Application" tab, look in the "Command:" blank
    and i guess you will see "zenmap" and maybe something else..

    so, to launch it as root just add a
    Code:
    kdesu
    in front of the "zenmap" and maybe something else...then click ok

    or maybe you have to figure out how to go in through the "Menu Editor"
    and do the same thing (add kdesu in front of the command)..

    then, you will be challenged for the root password before zenmap starts..

    but, i have a question: why are you running an anti-virus?

    --
    CAVEAT: http://is.gd/bpoMD
    Tried LibreOffice? Do that and help at http://is.gd/dZ9j2W
    [NNTP via openSUSE 11.3 + KDE4.5.5 + Thunderbird3.1.8]

  4. #4

    Default Re: Zenmap as root in KDE (11.4)

    Zenmap as a normal user runs no problem. It is only invoking zenmap as the root user which is an issue. Root is useful since it allows a more in-depth analysis.

    The 'Zenmap as root' launch from the KDE App Launcher actually runs a script in /usr/share/zenmap/ which is supposed to take care of kdesu depending on what kind of window manager you are running from. I tried changing the reference to zenmap in this script to specify the full path to zenmap, and once it did challenge me for the root password but still failed to run zenmap.

    I am not running an antivirus. Zenmap is a network mapper.

  5. #5

    Default Re: Zenmap as root in KDE (11.4)

    Found a workaround. I uninstalled the rpm versions of nmap and zenmap and installed from source to see if that was better. Not.
    At the same time as installing zenmap I also installed Wireshark. This programme works correctly from the App Launcher as root which is required. So I modified the execute line in my launcher item for 'zenmap as root' from the su-to-zenmap script to:

    /usr/bin/xdg-su -c /usr/local/bin/zenmap // note different install directory from Opensuse rpm since mine is from source.

    Works well.

  6. #6

    Default Re: Zenmap as root in KDE (11.4)

    I too had this issue, but decided it warranted a little more investigation.

    I looked at the invocation from the KDE menu - /usr/local/share/zenmap/su-to-zenmap.sh %F

    So I went to find that file, and line 8 said

    COMMAND="zenmap $@"

    and when I searched through the rest of the script, it had "$COMMAND" being called - hence too many " marks.

    So I changed line 8 to

    COMMAND=zenmap $@

    and when I ran the Zenmap as root gui option from the menu, it worked no problem.

    HTH

    Oval

  7. #7
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    10,730

    Default Re: Zenmap as root in KDE (11.4)

    On 04/05/2011 06:36 PM, grnoval wrote:
    >
    > and when I searched through the rest of the script, it had "$COMMAND"
    > being called - hence too many " marks.


    someone should clue the script's author, maybe..

    --
    CAVEAT: http://is.gd/bpoMD [NNTP via openSUSE 11.3 + KDE4.5.5 +
    Thunderbird3.1.8] Can you believe it? This guy Ralph wins $181 million
    in the lottery last Wednesday, and then finds the love of his life just
    2 days later. Talk about LUCK!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •