From 2aa8db968442a60b337a76e39b08767c510b1c41 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 22 Sep 2017 15:40:30 +0100 Subject: [PATCH] Ensure that motd gets locked down --- src/freedombone-utils-setup | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/freedombone-utils-setup b/src/freedombone-utils-setup index 0be4fe65..7849cfea 100755 --- a/src/freedombone-utils-setup +++ b/src/freedombone-utils-setup @@ -646,6 +646,8 @@ function lockdown_permissions { chmod -R 600 /etc/letsencrypt chmod -R g=rX /etc/letsencrypt fi + chown -f root:root /etc/motd /etc/issue* + chmod -f 0444 /etc/motd /etc/issue* } function disable_core_dumps {