as the owner of the X session (the user who you started x with, usually your normal user account) do
xhost +
I am trying to run a program (A tcpdump like GUI) that needs to be run as root in order to put the interface into promisc mode. When I open up a shell and run the program, I get :
Xlib: connection to ":0:0" refused by server
Xlib: Client is not authorized to connect to Server
Gtk-WARNING **: cannot open display 0:0
I can run the prog as a normal user, but cannot put the interface in promisc mode. I can run the prog as root fine, if I log into KDE as root. So my question, how do I run it after having su'ed to root within a shell? The program will not run suid.
as the owner of the X session (the user who you started x with, usually your normal user account) do
xhost +
Thanks. I knew this was an easy one.
Well that's the unsafe way to do it, running the program as root using say kdesu programname would be safer, because xhost + opens your xserver for EVERYBODYThanks. I knew this was an easy one.
Bookmarks