/etc/motd is also printed on non-login shells if a TTY has been requested

Guilhem Moulin guilhem at fripost.org
Wed Oct 14 02:42:18 AWST 2015


Hi,

As of 2015.68, dropbear(8) says

   “By default the file /etc/motd will be printed for any login shell
    (unless disabled at compile-time). This can also be disabled
    per-user by creating  a file ~/.hushlogin .”

But in fact /etc/motd is printed whenever a TTY has been requested, even
when a command is executed on a non-login shell (explicitly or via an
authorized_key(5) restriction).  For instance, using the OpenSSH client,

    ssh -t localhost -p 2222 true

prints the Message Of The Day.  This is probably not the intended
behavior, as it messes up with the command's standard output hence make
it hard to use redirections.

Cheers,
-- 
Guilhem.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
Url : http://lists.ucc.gu.uwa.edu.au/pipermail/dropbear/attachments/20151013/a9f09cb7/attachment-0001.sig 


More information about the Dropbear mailing list