6 # If there is a global system configuration file, suck it in.
8 if [ -r /etc/defaults/periodic.conf ]
10 . /etc/defaults/periodic.conf
14 case "$weekly_noid_enable" in
17 echo "Check for files with an unknown user or group:"
19 # Host should not test jailed subtrees as jails have their own
20 # databases of users and groups. Leave them for jailed invocations
24 if [ $(sysctl -n security.jail.jailed) = 0 ]; then
28 for param in $(jail -f "`sysrc -n jail_conf`" -e "$sep" 2>/dev/null)
31 path=*) exclude="$exclude -path ${param#path=} -prune -or"
37 rc=$(find -H ${weekly_noid_dirs:-/} \
38 \( $exclude ! -fstype local -prune -or -name \* \) -and \
39 \( -nogroup -o -nouser \) -print | sed 's/^/ /' |
40 tee /dev/stderr | wc -l)