From owner-freebsd-hackers Sat Jun 22 13:04:16 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id NAA05844 for hackers-outgoing; Sat, 22 Jun 1996 13:04:16 -0700 (PDT) Received: from misery.sdf.com (misery.sdf.com [204.244.210.241]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id NAA05832 for ; Sat, 22 Jun 1996 13:04:11 -0700 (PDT) Received: from localhost (tom@localhost) by misery.sdf.com (8.7.5/8.6.12) with SMTP id MAA06828; Sat, 22 Jun 1996 12:57:20 -0700 (PDT) Date: Sat, 22 Jun 1996 12:57:19 -0700 (PDT) From: Tom Samplonius To: Joerg Wunsch cc: FreeBSD hackers Subject: Re: Cleaning of /tmp in /etc/rc In-Reply-To: <199606221308.PAA27308@uriah.heep.sax.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Sat, 22 Jun 1996, J Wunsch wrote: > Does anybody know what the following is for? > > # prune quickly with one rm, then use find to clean up /tmp/[lq]* > # (not needed with mfs /tmp, but doesn't hurt there...) > (cd /tmp && rm -rf [a-km-pr-zA-Z]* && > find -d . ! -name . ! -name lost+found ! -name quotas -exec rm -rf -- {} \;) It's supposed to delete everything in /tmp except lost+found and quota.user and/or quota.group I believe lost+found can be safetly removed. It doesn't actually avoid the quota files properly. It should probably also check whether the quota files are owned by root. Tom