浏览代码

Set shadow permissions

Bob Mottram 8 年前
父节点
当前提交
0d568644e0
共有 1 个文件被更改,包括 10 次插入0 次删除
  1. 10
    0
      src/freedombone-utils-setup

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

@@ -370,6 +370,13 @@ function disable_deferred_execution {
370 370
     systemctl disable atd
371 371
 }
372 372
 
373
+function set_shadow_permissions {
374
+    chown root:root /etc/shadow
375
+    chmod 0000 /etc/shadow
376
+    chown root:root /etc/gshadow
377
+    chmod 0000 /etc/gshadow
378
+}
379
+
373 380
 function setup_firewall {
374 381
     function_check create_completion_file
375 382
     create_completion_file
@@ -394,6 +401,9 @@ function setup_utils {
394 401
     read_config_param "PROJECT_REPO"
395 402
     write_config_param "PROJECT_REPO" "$PROJECT_REPO"
396 403
 
404
+    function_check set_shadow_permissions
405
+    set_shadow_permissions
406
+
397 407
     function_check remove_bluetooth
398 408
     remove_bluetooth
399 409