From owner-freebsd-isp Tue Jun 18 11:26:04 1996 Return-Path: owner-isp Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id LAA15282 for isp-outgoing; Tue, 18 Jun 1996 11:26:04 -0700 (PDT) Received: from shogun.tdktca.com ([206.26.1.21]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id LAA15274 for ; Tue, 18 Jun 1996 11:26:01 -0700 (PDT) Received: from shogun.tdktca.com (daemon@localhost) by shogun.tdktca.com (8.7.2/8.7.2) with ESMTP id NAA20162 for ; Tue, 18 Jun 1996 13:27:21 -0500 (CDT) Received: from orion.fa.tdktca.com ([163.49.131.130]) by shogun.tdktca.com (8.7.2/8.7.2) with SMTP id NAA20157 for ; Tue, 18 Jun 1996 13:27:21 -0500 (CDT) Received: from orion (alex@localhost [127.0.0.1]) by orion.fa.tdktca.com (8.6.12/8.6.9) with SMTP id NAA09130; Tue, 18 Jun 1996 13:28:43 -0500 Message-ID: <31C6F559.3621A66B@fa.tdktca.com> Date: Tue, 18 Jun 1996 13:28:41 -0500 From: Alex Nash Organization: TDK Factory Automation X-Mailer: Mozilla 2.0 (X11; I; Linux 1.2.13 i586) MIME-Version: 1.0 To: Rick Gray CC: freebsd-isp@freebsd.org Subject: Re: /etc/daily References: <1.5.4.32.19960618170611.00698204@nwpros.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-isp@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Rick Gray wrote: > > It's me again. > > I've been getting this error message of not having the cleaning of / in > /etc/daily enabled. How do you enable it? I've looked at /etc/daily and > still confused. You can enable it by uncommenting (removing the pound signs from) the 4 lines of code following the warning message. Thus it would look like this: # 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!" # find / ! -fstype local -a -prune -o \ \( -name '[#,]*' -o -name '.#*' -o -name a.out -o -name *.core \ -o -name '*.CKP' -o -name '.emacs_[0-9]*' \) \ -a -atime +3 -exec rm -f -- {} \; Note that I've also commented out the warning. > BTW--what exactly does this do? It removes core files, editor temp files, and various other clutter-up- your-filesystem type files that are over 3 days old. As the warning states, this is not 100% safe. In fact the version in -current says: # 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. You may wish to search the archives for a further description of this security hole. Alex