25
rated 0 times
[
25]
[
0]
/ answers: 1 / hits: 14842
/ 3 Years ago, thu, may 6, 2021, 3:58:12
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_config
includes:
PrintMotd no
PrintLastLog no
PrintMotd no
andPrintLastLog no
are overriden by PAM in/etc/pam.d/sshd
session optional pam_motd.so
session optional pam_lastlog.so never showfailed
/var/run/motd
is symlinked to/etc/motd
:
/etc/motd -> /var/run/motd
The folder
/etc/update-motd.d/
is empty!
Question:
How can I disable the display of the above notice for non-root users?
More From » 12.04