On Tue, Jan 22, 2002 at 01:23:16PM -0800, Camilux wrote (1.00):
> if i am not root, i can for example open gdmconfig, but it says i 
> need to be root to change things; so i su - myself up to root, but 
> when i type gdmconfig, i get this error:
> 
> Gtk Error: Can't Open display

<snip>

> whats wrong here?

X uses security mechanisms to prevent other users on the same machine
from using your display.  The easiest way to fix this is to put the
following in your .bashrc (if you use bash):

export XAUTHORITY=$HOME/.Xauthority

then log out, log back in.

This will let you run X apps via su or sudo.

M

Attachment: pgps2C8WTlB2o.pgp
Description: PGP signature

Reply via email to