Re: make xconfig & xfree???
Jeremy Brown wrote:
Robert Tilley wrote:
Make was issued as root. Why can't root connect to the xserver?
root@debian-rtg:/usr/src/linux-18.104.22.168# make xconfig
HOSTCC -fPIC scripts/kconfig/zconf.tab.o
HOSTLLD -shared scripts/kconfig/libkconfig.so
qconf: cannot connect to X server
make: *** [xconfig] Error 1
make: *** [xconfig] Error 2
Any ideas welcome, Bob
Might want to try doing:
bash$ xhost +
as a regular user, before attempting to connect to the X server as root.
It's a lot safer to put in root's .bashrc:
if test "$LOGNAME" != "root"; then
This will give user root access to the X session of the logged-in-user.
What you suggested will give _every_ user access to the X session,
including the ability to read passwords etc.
(And, if the server accepts TCP connections, "xhost +" allows everyone
on the internet to connect, and look while you type your passords etc).