nerdexam
Linux_Foundation

LFCS · Question #515

Why is the xhost program considered dangerous to use?

The correct answer is B. It allows easy access to your X server by other users. The xhost program is considered dangerous because its improper use can grant unauthorized users easy access to your X server, leading to security vulnerabilities.

Submitted by lucia.co· Apr 18, 2026Networking

Question

Why is the xhost program considered dangerous to use?

Options

  • AIt makes it difficult to uniquely identify a computer on the network.
  • BIt allows easy access to your X server by other users.
  • CIt logs sensitive information to syslog.
  • DIt makes your computer share network resources without any authentication.
  • EIt is a graphical DNS tool with known exploits.

How the community answered

(29 responses)
  • A
    7% (2)
  • B
    90% (26)
  • E
    3% (1)

Why each option

The `xhost` program is considered dangerous because its improper use can grant unauthorized users easy access to your X server, leading to security vulnerabilities.

AIt makes it difficult to uniquely identify a computer on the network.

`xhost` manages X server access control, not network identification of computers.

BIt allows easy access to your X server by other users.Correct

The `xhost` command controls access to the X server, and using commands like `xhost +` or `xhost +hostname` can remove access control restrictions, allowing any user or host to connect to your X server, potentially capturing keystrokes, viewing screen content, or injecting malicious input.

CIt logs sensitive information to syslog.

`xhost` itself is an access control utility for the X server; its primary danger is not logging sensitive information to syslog.

DIt makes your computer share network resources without any authentication.

`xhost` specifically affects X server access, not general network resource sharing without authentication.

EIt is a graphical DNS tool with known exploits.

`xhost` is an X server access control program, not a graphical DNS tool.

Concept tested: X server security and xhost command risks

Source: https://man7.org/linux/man-pages/man1/xhost.1.html

Topics

#X server security#xhost command#access control

Community Discussion

No community discussion yet for this question.

Full LFCS Practice