Home page logo

nmap-dev logo Nmap Development mailing list archives

Re: zenmap as root error
From: Diman Todorov <diman.todorov () univie ac at>
Date: Fri, 11 Apr 2008 10:17:03 +0200

On Apr 10, 2008, at 4:25 PM, Aaron Leininger wrote:

I apologize for the delay in getting back to you all on this, my  
day job has been overwhelming lately.

I tried your suggestion with the following result:
nonroot$ sudo su -
myrootprompt# export DISPLAY=:0
myrootprompt# zenmap
Xlib: connection to ":0.0" refused by server
Xlib: Invalid MIT-MAGIC-COOKIE-1 key
Segmentation fault

I did some digging on this error in google and I found a response  
suggesting the error stems from trying to run something in an x- 
session that is owned by another user.

I opened a root-shell directly and ran zenmap again
myrootprompt# zenmap
With the result that it opened normally.

Can anyone tell me why I am seeing this behavior? Why does zenmap  
segmentation fault out if I open a normal shell and run: sudo  
zenmap but if I open a root shell, it launches fine. This seems odd  
to me.

it is odd :) It is definitely a bug. Maybe the GSoCers will get  
around to fixing that.


Sent through the nmap-dev mailing list
Archived at http://SecLists.Org

  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]