6:7f2c6e5ffee5 | 7:2c71590b2373 |
---|---|
1 #!/bin/bash | 1 #!/bin/bash |
2 # | 2 # |
3 # $Id$ | |
4 # | |
5 ############################################################################# | 3 ############################################################################# |
6 # Copyright (C) 2005 | 4 # Copyright (C) 2005-2009 |
7 # | 5 # |
8 # Michiel Broek <mbse@mbse.dds.nl> | 6 # Michiel Broek <mbse@mbse.eu> |
9 # Beekmansbos 10 | 7 # Beekmansbos 10 |
10 # 1971 BV IJmuiden | 8 # 1971 BV IJmuiden |
11 # the Netherlands | 9 # the Netherlands |
12 # | 10 # |
13 # This file is part of SlackSecCheckSripts. | 11 # This file is part of SlackSecCheckSripts. |
54 COMBINED=secure3.$$ | 52 COMBINED=secure3.$$ |
55 OUTPUT=secure4.$$ | 53 OUTPUT=secure4.$$ |
56 | 54 |
57 # Combine passwd and shadow files. | 55 # Combine passwd and shadow files. |
58 # | 56 # |
59 join -t : -j 1 $MP $SP > $COMBINED | 57 join --nocheck-order -t : -j 1 $MP $SP > $COMBINED |
60 | 58 |
61 | 59 |
62 # These are used several times. | 60 # These are used several times. |
63 # | 61 # |
64 awk -F: '!/^+/ { print $1 " " $3 }' $MP | sort -k2n > $MPBYUID | 62 awk -F: '!/^+/ { print $1 " " $3 }' $MP | sort -k2n > $MPBYUID |