Results 1 to 5 of 5

Thread: Simple X question (I hope)

  1. #1

    Simple X question (I hope)

    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.



  2. #2
    Guest

    Re: Simple X question (I hope)

    as the owner of the X session (the user who you started x with, usually your normal user account) do

    xhost +

  3. #3

    Re: Simple X question (I hope)

    Thanks. I knew this was an easy one.

  4. #4
    Guest

    Re: Simple X question (I hope)


    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 EVERYBODY

  5. #5

    Re: Simple X question (I hope)

    hmmm we had a similar thread once before

    my safer but not-by-the-book method is as root:
    Code:
    ln -s ~USERNAME/.Xauthority ~

Similar Threads

  1. Very simple newb Desktop question
    By mntamimi in forum Linux - General Topics
    Replies: 4
    Last Post: 09-14-2009, 02:29 PM
  2. Upgrading to Fedora Core 3 - simple question
    By DamselNDistress in forum Linux - General Topics
    Replies: 12
    Last Post: 03-04-2005, 02:20 PM
  3. Simple Python class question.
    By Smegma in forum Linux - Software, Applications & Programming
    Replies: 2
    Last Post: 10-22-2003, 09:29 AM
  4. Simple Question
    By CP in forum General Chat
    Replies: 47
    Last Post: 09-16-2002, 10:09 PM
  5. simple WindowMaker question
    By in forum Linux - Software, Applications & Programming
    Replies: 25
    Last Post: 05-01-2002, 03:37 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •