Limit X server connections to authorized clients using MIT-MAGIC-COOKIE records stored per user.
Which command manages this data?
xauth manages X server authorization records such as MIT-MAGIC-COOKIE values. Protect the authorization data from unintended sharing.
Detailed explanation
xauthCorrect. xauth manages X authorization records and cookies.
startxIncorrect. startx starts an X session.
uptimeIncorrect. uptime reports system status.
xkillallIncorrect. xkillall is not the standard authorization utility.
Try it yourself
An example you can run in a temporary verification environment.
xauth -h 2>&1 | head || trueExpected result
xauthがある場合はhelp。recordは変更しないKey points
- xauth
- Authorization cookie
- XAUTHORITY
Notes
- Environment: xauth helpのみ
- Use read-only help or environment inspection when checking X11 commands.
- Exact display-manager and desktop packages vary by distribution.
Foundation review
Place the operation
xauth handles credential records, while DISPLAY names the destination and startx launches a local session.
Check the side effect
Treat authorization cookies as secrets and inspect them without printing them into shared logs.