LFCS · Question #466
What file is typically used to display messages at the login prompt when remote users telnet in to the machine?
The correct answer is D. /etc/issue.net. The /etc/issue.net file is typically used to display pre-login messages to remote users accessing the machine via network services like Telnet or SSH.
Question
Options
- A/etc/issue
- B/etc/motd
- C/etc/net.banner
- D/etc/issue.net
How the community answered
(22 responses)- A5% (1)
- D95% (21)
Why each option
The `/etc/issue.net` file is typically used to display pre-login messages to remote users accessing the machine via network services like Telnet or SSH.
`/etc/issue` contains a message displayed to users on *local* text-mode terminals before the login prompt.
`/etc/motd` (message of the day) is displayed to users *after* they have successfully logged in, not at the login prompt.
`/etc/net.banner` is not a standard Linux/Unix file for displaying network login banners.
The `/etc/issue.net` file is specifically read and displayed by network login services (like `telnetd` or `sshd`) to remote users *before* they are prompted for authentication, making it suitable for pre-login banners.
Concept tested: Pre-login messages for remote access
Source: https://man7.org/linux/man-pages/man5/issue.5.html
Topics
Community Discussion
No community discussion yet for this question.