Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
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 and PrintLastLog 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

 Answers
4

  • clear/remove /etc/legal that contains the message



... or ...




  • create a file ~/.cache/motd.legal-displayed



Read more: ubuntuforums.org/showthread.php?t=1511335


[#28222] Friday, May 7, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
pilun

Total Points: 270
Total Questions: 100
Total Answers: 94

Location: England
Member since Sat, Feb 13, 2021
3 Years ago
;