awk -F: '
BEGIN {
# Read file1 into an array
while (getline < "file1") {
users[$2]=1
}
}
{
# For every line in file2, test for presence and
# display result
if (users[$1])
print $1 " exists in file1"
else
print $1 " does NOT exist in file1"
}
' file2