Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gtk-WARNING**: cannot open display (Airsnort)
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Proletariat
n00b
n00b


Joined: 10 Jan 2008
Posts: 3

PostPosted: Tue Jan 29, 2008 11:34 pm    Post subject: Gtk-WARNING**: cannot open display (Airsnort) Reply with quote

I'm pretty sure this is a permissions issue, but I have been trying to figure it out for hours now, and I can't find anything similar, so I hope someone out there can help. I have Airsnort installed in KDE (which is working fine as "user"), and the airsnort GUI was working fine from both user and root logins, but the application crashed, I terminated, and now when I attempt to start from a root login, I get the following error:

(airsnort:11183): Gtk-WARNING **: cannot open display:
~ #


So when I drop down to user, the GUI runs, but I get the following error:

SIOCSIFFLAGS: Permission denied

Anyway, I checked the xauth list for both root and user xauth for root was blank, so I copied the .Xauthority from user to /root/ because it was small anyway, but that didn't solve the problem. I don't believe I changed anything else, but it appears that root doesn't have the rights to run the X app, while user doesn't have the rights to use the wireless interface (ath0 or wifi0, I'm not sure which, yet). Can someone give me a hint as to what to do next to set these permissions straight?

Thanks in advance.
Back to top
View user's profile Send private message
Proletariat
n00b
n00b


Joined: 10 Jan 2008
Posts: 3

PostPosted: Tue Jan 29, 2008 11:48 pm    Post subject: Reply with quote

I neglected to add a few details. It should be noted that the additional /dev/null error started occurring only after I updated the driver to the most recent madwifi drivers as suggested on these Aircrack pages:

http://www.aircrack-ng.org/doku.php?id=install_drivers

http://www.aircrack-ng.org/doku.php?id=madwifi-ng#usage-tips

Anyway, here is the actual error:
Code:
user@ ~ $ airsnort
/sbin/wlanctl-ng ath0 lnxreq_ifstate ifstate=enable > /dev/null
sh: /sbin/wlanctl-ng: No such file or directory
SIOCSIFFLAGS: Permission denied


Code:
~ # airsnort

(airsnort:11303): Gtk-WARNING **: cannot open display:
 ~ # 
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum