diff --git a/tools/regression/usr.bin/lastcomm/values.sh b/tools/regression/usr.bin/lastcomm/values.sh index ef2e015a86f2..6c2095437e54 100644 --- a/tools/regression/usr.bin/lastcomm/values.sh +++ b/tools/regression/usr.bin/lastcomm/values.sh @@ -12,6 +12,11 @@ run() /usr/bin/time -l -o $1.time "$@" } +if [ `whoami` != "root" ]; then + echo "You need to be root to run this test." + exit 1 +fi + echo Redirecting accounting. mkdir $TMPDIR