FS#31158 - [nmap, kdesu] can't start zenmap as root

Attached to Project: Arch Linux
Opened by Artem A Klevtsov (unikum) - Thursday, 16 August 2012, 18:17 GMT
Last edited by Gaetan Bisson (vesath) - Friday, 17 August 2012, 08:46 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Andrea Scarpino (BaSh)
Gaetan Bisson (vesath)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Can't start /usr/share/applications/zenmap-root.desktop. I get following message:
Cannot execute command ' 'zenmap ''.

Also I tried launch /usr/share/zenmap/su-to-zenmap.sh. Brlow output:
$ sh /usr/share/zenmap/su-to-zenmap
kdesu(29941) startApp: Daemon not safe (not sgid), not using it.

kdesu(29941)/kdesu (kdelibs) KDESu::PtyProcess::exec: [ /build/src/kdelibs-4.9.0/kdesu/process.cpp : 293 ] Running "/usr/bin/sudo"
kdesu(29941)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ /build/src/kdelibs-4.9.0/kdesu/su.cpp : 259 ] Read line "kdesu_stub"
kdesu(29941)/kdesu (kdelibs) KDESu::PtyProcess::exec: [ /build/src/kdelibs-4.9.0/kdesu/process.cpp : 293 ] Running "/usr/bin/sudo"
kdesu(29941)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ /build/src/kdelibs-4.9.0/kdesu/su.cpp : 259 ] Read line "kdesu_stub

Additional info:
* package version(s)
extra/nmap 6.01-1
extra/kdebase-runtime 4.9.0-3
* config and/or log files etc.


Steps to reproduce:
sh /usr/share/zenmap/su-to-zenmap.sh
This task depends upon

Closed by  Gaetan Bisson (vesath)
Friday, 17 August 2012, 08:46 GMT
Reason for closing:  Fixed
Additional comments about closing:  nmap-6.01-2 in [extra]
Comment by Gaetan Bisson (vesath) - Friday, 17 August 2012, 06:35 GMT
su-to-zenmap.sh works fine for me (it uses xterm+sudo since I do not have Gnome/KDE installed).

I doubt your problem lies with this script, as it is really simple; more likely, your issue is with kde4su, but I cannot help you with that.
Comment by Gaetan Bisson (vesath) - Friday, 17 August 2012, 06:39 GMT
Andrea, could you see if /usr/share/zenmap/su-to-zenmap.sh from nmap (just a dozen of lines of bash) calls kdesu in a wrong way?
Comment by Artem A Klevtsov (unikum) - Friday, 17 August 2012, 07:07 GMT
Works fine with `kdesu zenamp`. su-to-zenmap.sh not work
Comment by Artem A Klevtsov (unikum) - Friday, 17 August 2012, 07:09 GMT
$ sh /usr/share/zenmap/su-to-zenmap.sh
kdesu(23863) startApp: Daemon not safe (not sgid), not using it.

kdesu(23863)/kdesu (kdelibs) KDESu::PtyProcess::exec: [ /build/src/kdelibs-4.9.0/kdesu/process.cpp : 293 ] Running "/bin/su"
kdesu(23863)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ /build/src/kdelibs-4.9.0/kdesu/su.cpp : 259 ] Read line "Password: "
kdesu(23863)/kdesu (kdelibs) KDESu::PtyProcess::exec: [ /build/src/kdelibs-4.9.0/kdesu/process.cpp : 293 ] Running "/bin/su"
kdesu(23863)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ /build/src/kdelibs-4.9.0/kdesu/su.cpp : 259 ] Read line "Password: "
kdesu(23863)/kdesu (kdelibs) KDESu::PtyProcess::WaitSlave: [ /build/src/kdelibs-4.9.0/kdesu/process.cpp : 379 ] Child pid 23868
kdesu(23863)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ /build/src/kdelibs-4.9.0/kdesu/su.cpp : 259 ] Read line ""
kdesu(23863)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ /build/src/kdelibs-4.9.0/kdesu/su.cpp : 259 ] Read line "kdesu_stub"
kdesu(23863)/kdesu (kdelibs) KDESu::PtyProcess::exec: [ /build/src/kdelibs-4.9.0/kdesu/process.cpp : 293 ] Running "/bin/su"
kdesu(23863)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ /build/src/kdelibs-4.9.0/kdesu/su.cpp : 259 ] Read line "Password: "
kdesu(23863)/kdesu (kdelibs) KDESu::PtyProcess::WaitSlave: [ /build/src/kdelibs-4.9.0/kdesu/process.cpp : 379 ] Child pid 23871
kdesu(23863)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ /build/src/kdelibs-4.9.0/kdesu/su.cpp : 259 ] Read line ""
kdesu(23863)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ /build/src/kdelibs-4.9.0/kdesu/su.cpp : 259 ] Read line "kdesu_stub"
Comment by Gaetan Bisson (vesath) - Friday, 17 August 2012, 08:12 GMT
Please. This script is just a dozen lines of bash. Can you have a look and find out what is wrong with it?
Comment by Gaetan Bisson (vesath) - Friday, 17 August 2012, 08:33 GMT
I found it for you: it's calling "kdesu 'zenmap $@'" instead of "kdesu -c 'zenmap $@'"; you can see what happens... I'll fix it soon.

Loading...