summaryrefslogtreecommitdiffstats
path: root/etc/daily
diff options
context:
space:
mode:
authorpst <pst@FreeBSD.org>1996-05-22 05:43:30 +0000
committerpst <pst@FreeBSD.org>1996-05-22 05:43:30 +0000
commit501579ff4d8385cfd9375d38bb9516624a68df61 (patch)
treef88049980a97ceb8535582fad3d63cd0e0bd4560 /etc/daily
parentf353351aebebad16e680f8ce48141186666a2a4c (diff)
downloadFreeBSD-src-501579ff4d8385cfd9375d38bb9516624a68df61.zip
FreeBSD-src-501579ff4d8385cfd9375d38bb9516624a68df61.tar.gz
Eliminate warning message and add big warnings about security holes
Diffstat (limited to 'etc/daily')
-rw-r--r--etc/daily7
1 files changed, 4 insertions, 3 deletions
diff --git a/etc/daily b/etc/daily
index 181cfcc..423063e 100644
--- a/etc/daily
+++ b/etc/daily
@@ -20,9 +20,10 @@ if [ -d /var/rwho ] ; then
fi
cd /tmp
-# This is not safe, you need to decide what is appropriate for your
-# system. Leave a warning note for now.
-echo "You did not enable the cleaning of / in /etc/daily!"
+
+# This is a security hole, never use 'find' on a public directory
+# with -exec rm -f as root. This can be exploited to delete any file
+# on the system.
#
#find / ! -fstype local -a -prune -o \
# \( -name '[#,]*' -o -name '.#*' -o -name a.out -o -name *.core \
OpenPOWER on IntegriCloud