Results 1 to 5 of 5

Thread: Simple X question (I hope)

Hybrid View

  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. (Hopefully) Simple question regarding samba
    By elovkoff in forum Linux - Hardware, Networking & Security
    Replies: 9
    Last Post: 10-28-2002, 06:21 PM
  2. Simple Question
    By CP in forum General Chat
    Replies: 47
    Last Post: 09-16-2002, 10:09 PM
  3. Simple Question
    By Baldy in forum Linux - Software, Applications & Programming
    Replies: 5
    Last Post: 07-26-2002, 03:39 PM
  4. simple WindowMaker question
    By in forum Linux - Software, Applications & Programming
    Replies: 25
    Last Post: 05-01-2002, 03:37 AM
  5. simple add user question
    By pinehead in forum Linux - General Topics
    Replies: 6
    Last Post: 04-30-2002, 03:06 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
  •