Re: make xconfig & xfree???

From: Joost Witteveen (joostje_at_iliana.nl)
Date: 09/30/04

  • Next message: nullman: "Re: User-Mode-Linux problem"
    Date: Thu, 30 Sep 2004 12:34:35 +0200
    To: Jeremy Brown <jeremy@brownjava.org>
    
    

    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-2.6.8.1# make xconfig
    >> HOSTCC scripts/basic/fixdep
    >> HOSTCC scripts/basic/split-include
    >> HOSTCC scripts/basic/docproc
    >> HOSTCC scripts/kconfig/conf.o
    >> HOSTCC scripts/kconfig/kconfig_load.o
    >> HOSTCC scripts/kconfig/mconf.o
    >> HOSTCXX scripts/kconfig/qconf.o
    >> HOSTCC -fPIC scripts/kconfig/zconf.tab.o
    >> HOSTLLD -shared scripts/kconfig/libkconfig.so
    >> HOSTLD scripts/kconfig/qconf
    >> scripts/kconfig/qconf arch/i386/Kconfig
    >> qconf: cannot connect to X server
    >> make[1]: *** [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
       export XAUTHORITY=/home/$LOGNAME/.Xauthority
    fi

    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).

    -- 
    joostje
    -- 
    To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: nullman: "Re: User-Mode-Linux problem"

    Relevant Pages

    • X server problems
      ... using either local sessions or remote X sessions to log in to the systems. ... comes up saying that "I cannot start the X server (your graphical ... Typing "startx" as root starts a session, ...
      (RedHat)
    • Re: [SLE] Xlib error
      ... all users get a warning message window saying the session lasted ... with $USER as your regular user name other than root. ... access to the X server. ... extract the authorization from regular user: ...
      (SuSE)
    • Re: Strange X-Windows behaviour
      ... > who has access to the currently running X session here. ... ":0" is a shared memory connection to the local X server that runs ... through TCP, while ":0" does not. ... > x-client running as root on the local display iff you get the root ...
      (comp.os.linux.misc)
    • Re: ASP.NET Application - Defined???
      ... Session, depending upon the browser. ... > business object into session state. ... > - Then Main.aspx did the bus obj user validation and filled out the rest ... > Sure the Default.aspx is in the apps root and Main.aspx is in a sub-folder ...
      (microsoft.public.dotnet.framework.aspnet)
    • Re: [opensuse] Root antivir ?.
      ... Sloan wrote: ... I can only gather than the X session is owned by someone other than ... how did you become root? ... Server is already active for display 0 ...
      (SuSE)