• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1201
  • Last Modified:

what is xhost and how does it work?

Hi

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
0
Keogh_b
Asked:
Keogh_b
3 Solutions
 
summittechnologiesCommented:
0
 
gonzal13RetiredCommented:
http://www.scit.wlv.ac.uk/cgi-bin/mansec?1+xhost

source google.com
search unix xhost
0
 
hfernCommented:
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.
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now