* Patrick O Neil ([EMAIL PROTECTED]) wrote:
> I know this has been asked off and on in the past but...
> I would REALLY like to eliminate this annoyance once
> and for all.  My feeling is that as superuser, this
> should NEVER apply, EVER.  As su I can do ANYTHING
> and I should not be prevented from connecting to
> display this or that at all.
> 
> Basically, I go to su in an xterm and try to run
> linuxconf, control-panel, or whatever and I keep 
> getting the annoying message that I cannot connect
> to display :0.0.  How do I fix things so that I 
> CAN connect to :0.0 as su no matter what? 
> 
> Please direct me to a howto, faq, or simply tell me
> how I fix this?  
> 
> patrick

In your ~/.xinitrc (or .xsession if you use runlevel 5), add the line:
xhost +localhost
before the line which starts your wm.

As to your comment:
> My feeling is that as superuser, this
> should NEVER apply, EVER.  As su I can do ANYTHING
> and I should not be prevented from connecting to
> display this or that at all.
So if I su on my machine, then I should be able to connect to your X
server and execute commands as root? That's very generous of you, but
also foolish ;)

The reason you can't do it by default is simply security. By default,
other people can't connect to your X server and do stuff. You have to
specifically let them. This is the way it should be.

Tom.
-- 
            .-------------------------------------------------------.
    .^.     | Tom Gilbert, England | [EMAIL PROTECTED] |
    /V\     |----------------------| www.tomgilbert.freeserve.co.uk |
   // \\    | Sites I recommend:   `--------------------------------|
  /(   )\   | www.freshmeat.net www.enlightenment.org slashdot.org  |
   ^^-^^    `-------------------------------------------------------'


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to