Problem:
The following text is shown for all non-root users when logging in via SSH:
The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
Configuration:
My
/etc/ssh/sshd_configincludes:PrintMotd no PrintLastLog noPrintMotd noandPrintLastLog noare overriden by PAM in/etc/pam.d/sshdsession optional pam_motd.so session optional pam_lastlog.so never showfailed/var/run/motdis symlinked to/etc/motd:/etc/motd -> /var/run/motdThe folder
/etc/update-motd.d/is empty!
Question:
How can I disable the display of the above notice for non-root users?
~/.cache/motd.legal-displayedcould not be created which lead to the legal notice getting displayed over and over again. The notice is ONLY displayed if the file is not present so that new users should see it once upon first login. – Nicolai Fröhlich Nov 27 '13 at 16:50