Interactive 2.2 File zapper.

Hibbard T. Smith JR smitty at essnj1.ESSNJAY.COM
Wed Jul 25 13:33:13 AEST 1990


Within the past 2 weeks, we've upgraded several systems from 2.0.2 to 2.2.
On one of those systems, on Sunday morning at 05:17 or thereabouts most of
the files on the system were deleted.  The problem was caused by a root
crontab driven execution of /etc/cleanup.  This system's /lost+found 
directory was inadvertently lost during the upgrade installation, and we
we're planning on recreating it on Monday morning.


The last two lines of the distributed /etc/cleanup are as follows:
--	cd /lost+found
--	find . -mtime +14 -exec rm -rf {} \;
If there's no lost and found directory in the root file system, this deletes
everything in the system that's older than 14 days. Two possible fixes exist:
-- cd /lost+found && find . -mtime +14 -exec rm -rf {} \;
-- find /lost+found -mtime +14 -exec -rm {} \;
Either of these is much safer than the distributed code.  This bad code is 
different than 2.0.2, so beware!

I hope this saves someone the grief of starting over, or worse yet, losing
a whole system when you're not prepared to rebuild it.

-- 
		Smitty
-------------------------------------------
Hibbard T. Smith JR                 smitty at essnj1.ESSNJAY.COM	
ESSNJAY Systems Inc.                uunet!hsi!essnj1!smitty



More information about the Comp.unix.i386 mailing list