From dbast0s@yahoo.com.br Tue Nov 25 09:10:08 2008 Path: egsner!news.cirr.com!pitt.edu!newsfeed.straub-nv.de!news.k-dsl.de!aioe.org!not-for-mail From: Daniel Chicayban Bastos Newsgroups: comp.unix.questions Subject: problem 7; exploiting rm's usage Date: Mon, 24 Nov 2008 16:42:51 +0100 (CET) Organization: Aioe.org NNTP Server Lines: 26 Message-ID: NNTP-Posting-Host: DLXoDvQ8OKjrBaurWJYmrg.user.aioe.org X-Complaints-To: abuse@aioe.org NNTP-Posting-Date: Mon, 24 Nov 2008 15:42:51 +0000 (UTC) User-Agent: slrn/0.9.8.1pl1 (Debian) X-Notice: Filtered by postfilter v. 0.7.5 Xref: egsner!news.cirr.com comp.unix.questions:129977 X-IMAPbase: 1230221461 1 Status: O X-Status: X-Keywords: X-UID: 1 This problem comes from http://cr.yp.to/2004-494/1209.pdf I have not solved problem 7 and I'm curious. Since rm does not follow symbolic links, and the files have different sizes, I'm not sure how this can happen. Feel free to solve it. Problem 7. The system administrator, after learning that the /home disk is full, finds and removes a 40-gigabyte file: % find /home -ls | sort -n +6 | tail -1 | awk '{print $11}' /home/joe/just-testing/rc % ls -l /home/joe/just-testing/rc -rw-r--r-- 1 joe joe 41162685334 Dec 9 10:00 /home/joe/just-testing/rc % rm /home/joe/just-testing/rc % ls -l /home/joe/just-testing/rc ls: /home/joe/just-testing/rc: No such file or directory % The system administrator later discovers, to his surprise, that the important 16000-byte system fi le /etc/rc has disappeared. What exactly did joe do?