Exam 102-500 Topic 3 Question 220 Discussion
Actual exam question for Lpi's 102-500 exam
Question #: 220
Topic #: 3
Question #: 220
Topic #: 3
Why is the xhost program considered dangerous to use?
Suggested Answer: B Vote an answer
The xhost program is used to add and delete host names or user names to the list allowed to make connections to the X server1. In the case of hosts, this provides a rudimentary form of privacy control and security. It is only sufficient for a workstation (single user) environment, although it does limit the worst abuses1. However, if xhost is used togrant access to everyone, even if they aren't on the list (i.e., access control is turned off), then any user on the network can connect to your X server and monitor your keystrokes, capture your screen, or run malicious programs2. This is why xhost is considered dangerous to use and should be avoided in favor of more secure methods, such as xauth or ssh23. References:
* xhost linux command man page - commandlinux.com
* Linux Xhost Command Help and Examples - Computer Hope
* xhost(1) - Arch manual pages
* xhost linux command man page - commandlinux.com
* Linux Xhost Command Help and Examples - Computer Hope
* xhost(1) - Arch manual pages
by Kent at Mar 09, 2026, 12:40 AM
0
0
0
10
Comments
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Report Comment
Commenting
You can sign-up / login (it's free).