Re: X problem as root

From: Pavlos Parissis (p_pavlos_at_freemail.gr)
Date: 06/27/05

  • Next message: martin f krafft: "Re: Announcing a new book: The Debian System -- Concepts and Techniques"
    Date: Mon, 27 Jun 2005 15:51:59 +0300
    To: debian-user@lists.debian.org
    
    

    Hello,
    You have to export the variable XAUTHORITY before invoke su
    export XAUTHORITY=~/.Xauthority
    su

    do not use the '-' in su command because this invoke the shell which read the
    .profile files and over write you XAUTHORITY variable.
    You will find a sample .bash_profile under /usr/share/docs/bash........
    I hope it helped
    Pavlos

    Αρχικό μήνυμα από Marco Calviani <mirtux@studenti.fisica.unifi.it>:

    > Hi everybody,
    > i've got a problem whenever i become root and try to open a window in
    > my user X session:
    >
    > for example:
    >
    > user@local:~$ su
    > root@local:~$ eog
    > Xlib: connection to ":0.0" refused by server
    > Xlib: No protocol specified
    >
    >
    > Does anybody can diagnose the problem?
    >
    > Thanks,
    > MC
    >
    >
    > --
    > To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
    > with a subject of "unsubscribe". Trouble? Contact
    > listmaster@lists.debian.org
    >
    >

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

  • Next message: martin f krafft: "Re: Announcing a new book: The Debian System -- Concepts and Techniques"

    Relevant Pages

    • Re: X problem as root
      ... .bashrc file. ... >You have to export the variable XAUTHORITY before invoke su ... >do not use the '-' in su command because this invoke the shell which read the ...
      (Debian-User)
    • Re: how to write a program that takes arguments from commandline?
      ... Mark McIntyre wrote: ... a shell) used to invoke your program. ... argv to come from a command line. ...
      (comp.lang.c)
    • Re: Im looking for "Virtual dummy shell" in linux?
      ... > I'm looking for this kind of shell. ... > be invoked and reuturn some result to user according to command user issued. ... > 2) but don't influence to real root file system and system environment. ... since a shell is used to invoke commands (ie executable ...
      (comp.os.linux.development.system)
    • Re: find with -exec option using complex expressions
      ... "find -exec" does not invoke a shell unless you explicitly give a command ... --AP news story ...
      (comp.unix.shell)
    • Re: xp_cmdshell
      ... Just create a regular batch file, save it in the root dir and invoke ... line shell you invoke when you go to Start> Run and enter cmd. ... >> invokes a new instance of of the command line shell, ...
      (microsoft.public.sqlserver.programming)