#!/bin/sh
set -e
set -u

awk -F: '{ if ( 1000 <= $3 && $3 < 30000 ) print $1 " " $6}' /etc/passwd | while read -r user home
do
	if test -d "$home"
	then
		echo "$home"
	fi

	if test -e "/var/mail/$user"
	then
		echo "/var/mail/$user"
	fi

	if test -e "/var/spool/cron/crontabs/$user"
	then
		echo "/var/spool/cron/crontabs/$user"
	fi
done

exit 0
