Thursday, May 2, 2024
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 9929  / 1 Year ago, fri, march 31, 2023, 12:38:54

In every home-directory on my Ubuntu Server is a .cache folder containing an empty file motd.legal-displayed. Is there a way to stop creating these .cache folders?


More From » home-directory

 Answers
3

See man update-motd and /etc/update-motd.d




Disable motd




See /etc/pam.d/login and comment out the line that has session optional pam_motd.so in it. You might also want to do this in /etc/pam.d/sshd if ssh is also a concern.




Completely remove motd




This will remove anything related to motd (so also motd.legal-displayed):



sudo apt-get remove --purge update-motd

[#32696] Friday, March 31, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
onbean

Total Points: 29
Total Questions: 102
Total Answers: 115

Location: Benin
Member since Fri, Mar 24, 2023
1 Year ago
;