Disable only the telnet service managed by xinetd.
Find its per-service configuration file.
Which path is conventional?
xinetd stores per-service configurations under /etc/xinetd.d/.
Detailed explanation
/etc/passwd/telnetIncorrect. /etc/passwd contains user information.
Incorrect. /etc/passwd contains user information.
/var/log/xinetd/telnetIncorrect. This is a log-like path, not the standard configuration directory.
Incorrect. This is a log-like path, not the standard configuration directory.
/etc/hosts/telnetIncorrect. /etc/hosts is a name-resolution file.
Incorrect. /etc/hosts is a name-resolution file.
/etc/xinetd.d/telnetCorrect. /etc/xinetd.d/telnet is the conventional per-service path.
Correct. /etc/xinetd.d/telnet is the conventional per-service path.
Try it yourself
An example you can run in a temporary verification environment.
printf '%s
' '/etc/xinetd.conf' '/etc/xinetd.d/<service>'Expected result
/etc/xinetd.d/<service>Key points
- xinetd.conf
- /etc/xinetd.d
- Per-service configuration
Notes
- Environment: printf / 設定ファイル変更なし
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.