#!/bin/bash # Prints all the files/directories that are Set UID or GID or that have a unknown user or group. source `which ttPM-funcs` 2>/dev/null || exit 1 printMsg warning "Files with UID/GID Set:" (find $TT_PKG_DIRS -perm +g+s -printf "%p: GID %g\n"; find $TT_PKG_DIRS -perm +u+s -printf "%p: SID %u\n") | sort printMsg warning "Files with unknown user or group" (find $TT_PKG_DIRS -nouser -printf "%p: Unknown User: %u\n"; find $TT_PKG_DIRS -nogroup -printf "%p: Unknown Group: %g\n" ) | sort