Sean Boudreau(deleted)
03/23/2009 10:01 AM
post25007
|
On Mon, Mar 23, 2009 at 09:43:37AM -0400, Marc Roessler wrote:
> Hi,
>
> we've noticed that the /etc/motd is only displayed sproadically when logging in via telnet. I've tested this on a full
QNX 6.4.0 2008/09/02 install in a VM, and on our mpc8313 target.
>
> After creating the /etc/motd (world readable) and logging in via telnet, the message is sometimes displayed, but in
most cases it is not.
/etc/motd appears to be handled by this section of /etc/profile. sshd
appears to always spit it out.
if test -f ~/.hushlogin -o "$TTY" = "not a tty"; then
echo -n >~/.lastlogin
else
echo "${DATE=$(date +%c)} on ${TTY}"
test /etc/motd -nt ~/.lastlogin && cat /etc/motd
test -s ~/.lastlogin && echo $(<~/.lastlogin)
echo "Last login: ${DATE} on ${TTY}" >~/.lastlogin
unset DATE
fi
>
> As a side note, also /etc/issue.net is not displayed when logging in via telnet (tested on x86 in VM).
I can't find any reference to /etc/issue.net.
-seanb
|
|
|