Debian Codegraph @

tests/cktools/pwck/21_pwck_invalid_user_ID_4294967296/pwck.test

raw
1 #!/bin/sh
2
3 set -e
4
5 cd $(dirname $0)
6
7 . ../../../common/config.sh
8 . ../../../common/log.sh
9
10 log_start "$0" "grpck checks the validity of UIDs"
11
12 save_config
13
14 # restore the files on exit
15 trap 'log_status "$0" "FAILURE"; restore_config' 0
16
17 change_config
18
19 ./pwck.exp
20
21 echo -n "Check the passwd file..."
22 ../../../common/compare_file.pl data/passwd /etc/passwd
23 echo "OK"
24 echo -n "Check the group file..."
25 ../../../common/compare_file.pl config/etc/group /etc/group
26 echo "OK"
27 echo -n "Check the shadow file..."
28 ../../../common/compare_file.pl data/shadow /etc/shadow
29 echo "OK"
30 echo -n "Check the gshadow file..."
31 ../../../common/compare_file.pl config/etc/gshadow /etc/gshadow
32 echo "OK"
33
34 log_status "$0" "SUCCESS"
35 restore_config
36 trap '' 0
37