Saturday, April 27, 2024
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 9922  / 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
onbean questions
Fri, Mar 18, 22, 19:49, 2 Years ago
Tue, Dec 6, 22, 11:51, 1 Year ago
Mon, Jun 7, 21, 17:21, 3 Years ago
Mon, Jan 16, 23, 04:48, 1 Year ago
Mon, Oct 17, 22, 14:51, 2 Years ago
;