Cannot connect to X server

From: Jim Bowering (iambat_at_otvcablelandot.net)
Date: 04/28/04


Date: Wed, 28 Apr 2004 07:59:34 -0700

Lately (and periodically) I've run into the problem where I can't run X progs
as root. I have KDE on Debian unstable. For instance, I can't run Kedit as
root, getting this error message: kedit: cannot connect to X server :0.0

xhost +localhost doesn't fix the problem. If I do su -m it does fix it. I
would like to be able to run X apps as root, with root's environment,
automatically

-- 
LinW (Linux is not Windows)


Relevant Pages

  • Re: K3B wont run any longer.
    ... Much better to fix your path. ... The problem with running ANY KDE based application as root while you are ... logged in is that the application will modify permissions on ... .ICEauthority to be owned by root. ...
    (Fedora)
  • Re: k3b permissions problems in SuSE9.2 pro
    ... >>1) CD record does not run with root privileges ... >>It says to run K3bSetup to fix the problems. ... that's not the first time these kinds of user permission ...
    (alt.os.linux.suse)
  • Re: Dug myself into several deep holes
    ... > Over several months I have tried to fix sound, mail, X ... as root, force yourself to use sudo for things, and ask yourself three times ... learn to make backups of your system. ... Hardware/disk failure is ...
    (Debian-User)
  • Re: I messed up some config files, now all my users have lost sudo priv :(
    ... way I can fix it until I get to work and reboot in recovery mode. ... because the server is an essential web and svn server for the company - ... The first thing you have to do is to become root. ... The only stupid question is the one you don't ask ...
    (Ubuntu)
  • Re: SCHED_FIFO and SCHED_RR broken by cfs
    ... up to 95% cpu usage FIFO and RR behave ... Right, but it is restricted to root, and if the task is run as root ... Yeah - except that most distros disable sysrq and not a single desktop ... Please do fix. ...
    (Linux-Kernel)