Quellcode durchsuchen

Set shadow permissions

Bob Mottram vor 8 Jahren
Ursprung
Commit
0d568644e0
1 geänderte Dateien mit 10 neuen und 0 gelöschten Zeilen
  1. 10
    0
      src/freedombone-utils-setup

+ 10
- 0
src/freedombone-utils-setup Datei anzeigen

370
     systemctl disable atd
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
 function setup_firewall {
380
 function setup_firewall {
374
     function_check create_completion_file
381
     function_check create_completion_file
375
     create_completion_file
382
     create_completion_file
394
     read_config_param "PROJECT_REPO"
401
     read_config_param "PROJECT_REPO"
395
     write_config_param "PROJECT_REPO" "$PROJECT_REPO"
402
     write_config_param "PROJECT_REPO" "$PROJECT_REPO"
396
 
403
 
404
+    function_check set_shadow_permissions
405
+    set_shadow_permissions
406
+
397
     function_check remove_bluetooth
407
     function_check remove_bluetooth
398
     remove_bluetooth
408
     remove_bluetooth
399
 
409