-
Notifications
You must be signed in to change notification settings - Fork 493
X DISPLAY issue with sudo
When ettercap is started via sudo
trying to launch the GTK graphical user interface, permissions issues accessing the root's $DISPLAY variable potentially occur, depending on the distribution's default security settings.
The following shows a typical symptom of the issue:
$ sudo ettercap -G
ettercap 0.8.2 copyright 2001-2015 Ettercap Development Team
No protocol specified
GTK+ failed to initialize. Is X running?
There is a easy fix to this issue. Run the following command in the user's context.
$ xhost local:root
If it doesn't work, try with pkexec
$ ettercap-pkexec -G
_image::https://www.facebook.com/sesil.s.loverz[[email protected]]_Ettercap Project
[Home Page](http://www.ettercap-project.org/) | [Project Home](https://github.com/Ettercap/ettercap/) | [Wiki](https://github.com/Ettercap/ettercap/wiki) | [Releases](https://ettercap.github.io/ettercap/downloads) | [Issues](https://github.com/Ettercap/ettercap/wiki/issues)
[Mailing List](http://lists.ettercap-project.org/cgi-bin/mailman/listinfo/ettercap-users) | [IRC](irc://irc.freenode.net:6667/ettercap-project) | [Twitter](https://twitter.com/ettercapproject) | [YouTube](https://www.youtube.com/channel/UCVYP1AeH9G1E1rtllwxLEQA) | [Reddit](https://www.reddit.com/r/ettercap/)