瀏覽代碼

Ensure that motd gets locked down

Bob Mottram 7 年之前
父節點
當前提交
2aa8db9684
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2
    0
      src/freedombone-utils-setup

+ 2
- 0
src/freedombone-utils-setup 查看文件

@@ -646,6 +646,8 @@ function lockdown_permissions {
646 646
         chmod -R 600 /etc/letsencrypt
647 647
         chmod -R g=rX /etc/letsencrypt
648 648
     fi
649
+    chown -f root:root /etc/motd /etc/issue*
650
+    chmod -f 0444 /etc/motd /etc/issue*
649 651
 }
650 652
 
651 653
 function disable_core_dumps {