22:32af3eef438b | 23:b66522a5726e |
---|---|
1 #!/bin/bash | 1 #!/bin/bash |
2 # | 2 # |
3 ############################################################################# | 3 ############################################################################# |
4 # Copyright (C) 2005-2013 | 4 # Copyright (C) 2005-2020 |
5 # | 5 # |
6 # Michiel Broek <mbse at mbse.eu> | 6 # Michiel Broek <mbse at mbse.eu> |
7 # | 7 # |
8 # This file is part of SlackSecCheckScripts. | 8 # This file is part of SlackSecCheckScripts. |
9 # | 9 # |
70 # machine and trust accounts. | 70 # machine and trust accounts. |
71 # | 71 # |
72 awk -v "len=$max_loginlen" ' | 72 awk -v "len=$max_loginlen" ' |
73 BEGIN { | 73 BEGIN { |
74 while ( getline < "/etc/shells" > 0 ) { | 74 while ( getline < "/etc/shells" > 0 ) { |
75 if ($0 ~ /^\#/ || $0 ~ /^$/ ) | 75 if ($0 ~ /^#/ || $0 ~ /^$/ ) |
76 continue; | 76 continue; |
77 shells[$1]++; | 77 shells[$1]++; |
78 } | 78 } |
79 FS=":"; | 79 FS=":"; |
80 } | 80 } |