소스 검색

Disable null passwords

Bob Mottram 8 년 전
부모
커밋
3f0d9b7b82
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7
    0
      src/freedombone-utils-setup

+ 7
- 0
src/freedombone-utils-setup 파일 보기

@@ -537,6 +537,10 @@ function dummy_nologin_command {
537 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 544
 function setup_firewall {
541 545
     function_check create_completion_file
542 546
     create_completion_file
@@ -561,6 +565,9 @@ function setup_utils {
561 565
     read_config_param "PROJECT_REPO"
562 566
     write_config_param "PROJECT_REPO" "$PROJECT_REPO"
563 567
 
568
+    function_check disable_null_passwords
569
+    disable_null_passwords
570
+
564 571
     function_check disable_tipc
565 572
     disable_tipc
566 573