what is xhost and how does it work?

Posted on 2006-03-27
Last Modified: 2008-01-09

I am new to Unix and have encountered xhost for the first time.

Could you recommend some information to help me understand what exactly xhost is and how it works

Thanks in advance
Question by:Keogh_b
    LVL 2

    Accepted Solution

    LVL 13

    Assisted Solution


    search unix xhost
    LVL 3

    Assisted Solution

    Just in brief, xhost controls which servers can access your X-terminal. Normally, only the localhost, the computer attached to the display can access the local X-terminal server. It may be useful in some circumstances to also allow other computers access to your display. An example is when you telnet or ssh to another computer and run a program there that needs to access your screen.

    Some useful commands:
        xhost +                this command allows everyone access to your local screen
        xhost +name        allows computer with name 'name' access to your local screen
        xhost -name         revokes access to computer with name 'name' access to your local screen

    BTW: you can also type man xhost and this wil give a you (on most Unix computers) a manual page for the xhost command.

    Hope this helps.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Introduction How to create multiboot configuration with XP\Vista and Windows 7 on it? And most important question - how to do this correctly so not to have any kind of nightmares we get when system gets screwed? First of all one should realize t…
    Introduction Often we come across situations wherein our batch files would be needing to reboot Windows for a variety of reasons. A few of them would be like: (1) Setup files have been updated whose changes can take effect only after a reboot …
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    This video discusses moving either the default database or any database to a new volume.

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now