[Bug 1263311] Re: zenmap as root not displayed

2018-10-31 Thread Samuel Henrique
fixed on  7.70+dfsg1-4 with polkit as a Dependency, I'm uploading
7.70+dfsg1-5 now with polkit as Recommends

** Changed in: nmap (Debian)
   Importance: Unknown => Undecided

** Changed in: nmap (Debian)
 Remote watch: Debian Bug tracker #890728 => None

** Changed in: nmap (Debian)
 Assignee: (unassigned) => Samuel Henrique (samueloph)

** Changed in: nmap (Debian)
   Status: New => Fix Released

** Changed in: nmap (Debian)
 Assignee: Samuel Henrique (samueloph) => (unassigned)

** Changed in: nmap (Debian)
 Assignee: (unassigned) => Samuel Henrique (samueloph)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1263311

Title:
  zenmap as root not displayed

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nmap/+bug/1263311/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1263311] Re: zenmap as root not displayed

2018-02-21 Thread ChristianEhrhardt
dropped server-next as the issue is fixed for now, remaining issue to
get a cleaner forward looking solution is no more bitesize - adapting
tags.

** Tags removed: bitesize server-next

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1263311

Title:
  zenmap as root not displayed

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nmap/+bug/1263311/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1263311] Re: zenmap as root not displayed

2018-02-20 Thread ChristianEhrhardt
Oh I even thought we did a bigger oopsie here of a component mismatch (nmap in 
main but menu is not). Yet I found that zenmap (binary) of src:nmap is not in 
main either which explains why it migrated.
Maybe I should not have done the review in between meeting :-/ as also the bug 
reference you added was not following the regexp, but I set the status 
correctly here.

It is ok'ish and working for now, but we should follow on to clean up.

Per discussion in the linked Debian bug policykit-1 was recommended
which is better (This was to desktoppy for me to know right away and I
was just following the command that was used so far in my suggestion).

About recommends, the package (strictly speaking) can work without this,
you can sudo it or use a root X11 session. So it really is more a
recommends than a depends.

The calls look slightly different, but we need to adapt the su-to-root patch 
anyway.
Other examples of pkexec in .desktop files used wrappers, but those only do 
like:
pkexec "/usr/sbin/gparted" "$@"
Well we can do that directly in the desktop file I think unless somebody 
explains why a wrapper is needed. Well actually to run it from cmdline it would 
be nice to have one.

I had some issues that zenmap can't access the Display in that environment, but 
other programs could using the same mechanisms. I assume you need a bit more 
for polkit to work as it should in this case. The manpage mentions that it 
intentionally strips the environment.
After knowing that I found [1]
This is such a case as zenmap has no own polkit integration to do it right - so 
it is one of the legacy apps that needs this , see also [2] in regard to X11.

So we also need a policykit action *sigh*.

In a few iterations I got closer bug I think I'm not complete.
I'll attach a patch not meant to be complete yet (it might be incomplete and 
have side effects due to neither of us being a Desktop/policykit expert).

@David - if you'd give this another look to have a second set of eyes on
it and finalize it to work that would be great. If you are good with it
(or even with a partial suggest) you might pass it to the Debian bug. If
you don't find it either maybe Rafael has the experience and do the
cleanup of this even if we don't know all of the bits it needs.

[1]: 
https://unix.stackexchange.com/questions/203136/how-do-i-run-gui-applications-as-root-by-using-pkexec
 
[2]: http://manpages.ubuntu.com/manpages/xenial/man1/pkexec.1.html

** Patch added: "debdiff of experimental rework to use polkit/pkexec - (WIP)"
   
https://bugs.launchpad.net/ubuntu/+source/nmap/+bug/1263311/+attachment/5059474/+files/nmap-zenmap-use-pkexec-experimental.debdiff

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1263311

Title:
  zenmap as root not displayed

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nmap/+bug/1263311/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1263311] Re: zenmap as root not displayed

2018-02-20 Thread ChristianEhrhardt
** Changed in: nmap (Ubuntu)
   Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1263311

Title:
  zenmap as root not displayed

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nmap/+bug/1263311/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1263311] Re: zenmap as root not displayed

2018-02-20 Thread ChristianEhrhardt
Yeah just the change that I had in mind - thanks David.
Thanks for your build on this.

I totally agree to the proposed debdiff and will sponsor it to Bionic
now.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1263311

Title:
  zenmap as root not displayed

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nmap/+bug/1263311/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1263311] Re: zenmap as root not displayed

2018-02-18 Thread Ubuntu Foundations Team Bug Bot
The attachment "nmap_7.60-1ubuntu4.debdiff" seems to be a debdiff.  The
ubuntu-sponsors team has been subscribed to the bug report so that they
can review and hopefully sponsor the debdiff.  If the attachment isn't a
patch, please remove the "patch" flag from the attachment, remove the
"patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe
the team.

[This is an automated message performed by a Launchpad user owned by
~brian-murray, for any issue please contact him.]

** Tags added: patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1263311

Title:
  zenmap as root not displayed

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nmap/+bug/1263311/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1263311] Re: zenmap as root not displayed

2018-02-17 Thread Bug Watch Updater
** Changed in: nmap (Debian)
   Status: Unknown => New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1263311

Title:
  zenmap as root not displayed

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nmap/+bug/1263311/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1263311] Re: zenmap as root not displayed

2018-02-17 Thread David Britton
This is a debdiff for Bionic applicable to nmap 7.60-1ubuntu3.  I built
and installed it in a bionic instance and it pulled in the 'menu'
package correctly.  After the menu package is installed, the zenmap (as
root) .desktop icon shows up in my DE (gnome-shell) just fine when
searching for zenmap.

** Patch added: "nmap_7.60-1ubuntu4.debdiff"
   
https://bugs.launchpad.net/ubuntu/+source/nmap/+bug/1263311/+attachment/5057544/+files/nmap_7.60-1ubuntu4.debdiff

** Changed in: nmap (Ubuntu)
   Status: Triaged => In Progress

** Changed in: nmap (Ubuntu)
   Importance: Undecided => Low

** Changed in: nmap (Ubuntu)
 Assignee: (unassigned) => David Britton (davidpbritton)

** Bug watch added: Debian Bug tracker #890728
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=890728

** Also affects: nmap (Debian) via
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=890728
   Importance: Unknown
   Status: Unknown

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1263311

Title:
  zenmap as root not displayed

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nmap/+bug/1263311/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1263311] Re: zenmap as root not displayed

2018-02-17 Thread Lubo Diakov
Thank you for your answer. Good to have additional information.

Oddly, it appears to have fixed itself. I know I've rebooted at least
once and installed other packages. (Though I'd think normally only
logging out and back in is required, and I did that several times before
I took the first screenshot) Perhaps the programs/filed you refer to are
a dependency of whatever I installed afterward.

In any case, my request would be for the changes you mention to be made
upstream, either in the Ubuntu or Debian packages, so they will work for
everyone from now on, rather than fixed on a case by case basis. :-)

If there is any info. I can give you as to the state of my system now,
that would explain why it works now or help make a permanent patch/bug
fix, I'd be glad to help.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1263311

Title:
  zenmap as root not displayed

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nmap/+bug/1263311/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1263311] Re: zenmap as root not displayed

2018-02-16 Thread ChristianEhrhardt
Hi,
this is due to the desktop file using a binary that is not there.
  TryExec=su-to-root
  Exec=su-to-root -X -c zenmap %F

But
$ su-to-root
The program 'su-to-root' is currently not installed. You can install it by 
typing:
sudo apt install menu

If installing "menu" and reinstalling zenmap afterwards (or do any other
menu refreshing action) it shows up.

The solution is to add "menu" to the Depends of zenmap in d/control of
the nmap package.

** Changed in: nmap (Ubuntu)
   Status: Confirmed => Triaged

** Tags added: bitesize server-next

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1263311

Title:
  zenmap as root not displayed

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nmap/+bug/1263311/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1263311] Re: zenmap as root not displayed

2018-02-15 Thread Lubo Diakov
The same, or at least very similar bug (perhaps a regression?) happening
on Xenial 16.04 64 bit.

Output:

lsb_release -rd
Description:Ubuntu 16.04.3 LTS
Release:16.04

dpkg -l zenmap
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name   Version  Architecture Description
+++-==---=
ii  zenmap 7.01-2ubuntu all  The Network Mapper Front End

dpkg -L zenmap|grep desktop
/usr/share/applications/zenmap-root.desktop
/usr/share/applications/zenmap.desktop

Seems the package puts both root and non-root .desktop files in
/usr/share/applications and this is not shown in the menus! Oddly,
something, most likely a prior version of the package, also from Ubuntu
repositories (since I've never installed it from other repos or source),
has left a non-root .desktop in /usr/share/app-
install/desktop/zenmap:zenmap.desktop as shown below:

ls -la $(locate *zenmap*.desktop)
-rw-r--r-- 1 root root 398 сеп 10  2015 
/usr/share/app-install/desktop/zenmap:zenmap.desktop
-rw-r--r-- 1 root root 277 мар 31  2016 /usr/share/applications/zenmap.desktop
-rw-r--r-- 1 root root 308 мар 31  2016 
/usr/share/applications/zenmap-root.desktop

That top .desktop file seems to be the only one working, as shown in the
attached screenshot. And yes, this is Lubuntu, though the bug appears to
affect multiple Ubuntu variants, and is not Lubuntu specific, the
original poster was on Ubuntu himself, since his screenshot shows Unity!

** Attachment added: "No root access on menu"
   
https://bugs.launchpad.net/ubuntu/+source/nmap/+bug/1263311/+attachment/5055662/+files/No_root_access_zenmap.png

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1263311

Title:
  zenmap as root not displayed

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nmap/+bug/1263311/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1263311] Re: zenmap as root not displayed

2018-02-15 Thread Lubo Diakov
** Tags added: xenial

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1263311

Title:
  zenmap as root not displayed

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nmap/+bug/1263311/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1263311] Re: zenmap as root not displayed

2018-02-15 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: nmap (Ubuntu)
   Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1263311

Title:
  zenmap as root not displayed

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nmap/+bug/1263311/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1263311] Re: zenmap as root not displayed

2013-12-21 Thread Jörg Frings-Fürst
** Attachment added: apt-cache policy zenmap
   
https://bugs.launchpad.net/ubuntu/+source/nmap/+bug/1263311/+attachment/3933648/+files/apt-cache%20policy%20zenmap

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to nmap in Ubuntu.
https://bugs.launchpad.net/bugs/1263311

Title:
  zenmap as root not displayed

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nmap/+bug/1263311/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1263311] Re: zenmap as root not displayed

2013-12-21 Thread Jörg Frings-Fürst
** Attachment added: Bildschirmfoto vom 2013-12-21 12:28:31.png
   
https://bugs.launchpad.net/ubuntu/+source/nmap/+bug/1263311/+attachment/3933651/+files/Bildschirmfoto%20vom%202013-12-21%2012%3A28%3A31.png

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to nmap in Ubuntu.
https://bugs.launchpad.net/bugs/1263311

Title:
  zenmap as root not displayed

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nmap/+bug/1263311/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1263311] Re: zenmap as root not displayed

2013-12-21 Thread Jörg Frings-Fürst
** Attachment added: apt-cache policy zenmap
   
https://bugs.launchpad.net/ubuntu/+source/nmap/+bug/1263311/+attachment/3933648/+files/apt-cache%20policy%20zenmap

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1263311

Title:
  zenmap as root not displayed

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nmap/+bug/1263311/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1263311] Re: zenmap as root not displayed

2013-12-21 Thread Jörg Frings-Fürst
** Attachment added: Bildschirmfoto vom 2013-12-21 12:28:31.png
   
https://bugs.launchpad.net/ubuntu/+source/nmap/+bug/1263311/+attachment/3933651/+files/Bildschirmfoto%20vom%202013-12-21%2012%3A28%3A31.png

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1263311

Title:
  zenmap as root not displayed

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nmap/+bug/1263311/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs