Browse Source

Disable null passwords

Bob Mottram 8 years ago
parent
commit
3f0d9b7b82
1 changed files with 7 additions and 0 deletions
  1. 7
    0
      src/freedombone-utils-setup

+ 7
- 0
src/freedombone-utils-setup View File

537
     fi
537
     fi
538
 }
538
 }
539
 
539
 
540
+function disable_null_passwords {
541
+    sed -i 's| nullok_secure||g' /etc/pam.d/common-auth
542
+}
543
+
540
 function setup_firewall {
544
 function setup_firewall {
541
     function_check create_completion_file
545
     function_check create_completion_file
542
     create_completion_file
546
     create_completion_file
561
     read_config_param "PROJECT_REPO"
565
     read_config_param "PROJECT_REPO"
562
     write_config_param "PROJECT_REPO" "$PROJECT_REPO"
566
     write_config_param "PROJECT_REPO" "$PROJECT_REPO"
563
 
567
 
568
+    function_check disable_null_passwords
569
+    disable_null_passwords
570
+
564
     function_check disable_tipc
571
     function_check disable_tipc
565
     disable_tipc
572
     disable_tipc
566
 
573