summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorwosch <wosch@FreeBSD.org>1997-11-01 15:03:05 +0000
committerwosch <wosch@FreeBSD.org>1997-11-01 15:03:05 +0000
commit3c4c203704b02c49c76979650d5192a42eb54e23 (patch)
tree85160c0f09ddb1ceb6e0f0e550e454b10cac07e5 /etc
parent883fab98f1dbe6151a10dae1042717b49f5f0999 (diff)
downloadFreeBSD-src-3c4c203704b02c49c76979650d5192a42eb54e23.zip
FreeBSD-src-3c4c203704b02c49c76979650d5192a42eb54e23.tar.gz
Check for files belongs to an unknown user or unknown group.
Do not run by default.
Diffstat (limited to 'etc')
-rw-r--r--etc/periodic/weekly/340.noid14
-rw-r--r--etc/periodic/weekly/Makefile3
2 files changed, 16 insertions, 1 deletions
diff --git a/etc/periodic/weekly/340.noid b/etc/periodic/weekly/340.noid
new file mode 100644
index 0000000..4848ee3
--- /dev/null
+++ b/etc/periodic/weekly/340.noid
@@ -0,0 +1,14 @@
+#!/bin/sh -
+#
+# $Id$
+
+exit 0 # do not run by default
+
+echo ""
+echo "Check for files belongs to an unknown user or unknown group:"
+
+# directories to be verified
+: ${NOIDSEARCHPATHS="/"}
+
+find -H $NOIDSEARCHPATHS -fstype local \( -nogroup -or -nouser \) -print
+
diff --git a/etc/periodic/weekly/Makefile b/etc/periodic/weekly/Makefile
index 863e5e8..2c3d1c6 100644
--- a/etc/periodic/weekly/Makefile
+++ b/etc/periodic/weekly/Makefile
@@ -1,10 +1,11 @@
-# $Id: Makefile,v 1.1.1.1 1997/08/16 17:04:02 pst Exp $
+# $Id: Makefile,v 1.2 1997/08/18 16:49:40 pst Exp $
BIN= 120.clean-kvmdb \
300.uucp \
310.locate \
320.whatis \
330.catman \
+ 340.noid \
999.local
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud