xhost working differently under Debian?!

From: Eric Lavarde (Eric.Lavarde_at_bawue.de)
Date: 03/19/05

  • Next message: Alvin Oga: "Re: xhost working differently under Debian?!"
    Date: Sat, 19 Mar 2005 08:07:43 +0100
    To: debian-user@lists.debian.org
    
    

    Hi,

    under HP-UX and SuSE Linux flavors, I'm used to do the following
    - open two consoles
    - on one type 'xhost + localhost'
    - on the other 'su - someotheruser' and 'DISPLAY=:0 xclock' (or some
    more useful X command).
    Then xclock appears on my desktop.

    Under Debian sarge, not much extra configuration, I can't make it work.
    I always need to enter 'xhost +' and then it works.
    I tried on one side:
    - xhost + localhost
    - xhost + localhost.localdomain
    - xhost + 127.0.0.1
    and on the other side DISPLAY= with the same kinds of combinations.
    I suspect some name resolution problem but I don't know actually.

    I didn't touch /etc/hosts and /etc/nsswitch.conf but here they are:

    $ cat /etc/hosts
    127.0.0.1 localhost.localdomain localhost zorglub

    # The following lines are desirable for IPv6 capable hosts
    ::1 ip6-localhost ip6-loopback
    fe00::0 ip6-localnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters
    ff02::3 ip6-allhosts

    $ cat /etc/nsswitch.conf
    # /etc/nsswitch.conf
    #
    # Example configuration of GNU Name Service Switch functionality.
    # If you have the `glibc-doc' and `info' packages installed, try:
    # `info libc "Name Service Switch"' for information about this file.

    passwd: compat
    group: compat
    shadow: compat

    hosts: files dns
    networks: files

    protocols: db files
    services: db files
    ethers: db files
    rpc: db files

    netgroup: nis

    Any kind of idea?

    Thanks, Eric

    -- 
    Gewalt ist die letzte Zuflucht der Inkompetenz.
         Violence is the Last Resort of the Incompetent.
             Gwalt jest ostatnem schronieniem niekompetencji.
                 La violence est le dernier refuge de l'incompetence.
         ~ Isaac Asimov
    -- 
    To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: Alvin Oga: "Re: xhost working differently under Debian?!"

    Relevant Pages

    • Re: X access control
      ... I have to execute "xhost +localhost" everytime I start a ... Most X servers are started with ... "xhost +" removes all access control, ...
      (comp.os.linux.x)
    • Re: [SLE] red-carpet question
      ... > After adding localhost to the access crontrol list ... > Error importing gtk: could not open display ... Now it is "xhost +local:localhost" ... Mail has the best spam protection around ...
      (SuSE)
    • Re: X/ssh by port forwarding?
      ... address of your work machine to start X clients on your home display, ... with no benefit of SSH protection whatsoever. ... not be using xhost for anything, ever, if you can avoid it. ... would not be coming from the work address, but from 127.0.0.1, localhost, ...
      (comp.os.linux.x)
    • Re: [SLE] 9.1 and lack of Gnome
      ... brooks@84:~> xhost +localhost ... either you have no DISPLAY variable set or the root user does not ...
      (SuSE)
    • Re: [SLE] 9.1 and lack of Gnome
      ... Tried installing XD2 and it won't go. ... localhost being added to access control list ... either you have no DISPLAY variable set or the root user does not ... Run 'xhost +localhost' ...
      (SuSE)