[LUNI] finding out what rm did

Lawrence, Sean slawrence at seveninteractive.com
Wed Nov 28 16:56:00 CST 2001


It didn't remove everything on the live site since I killed it within a
second but I want to make sure NOTHING was deleted.  It did kill the test
box as I said.
 
rm -rf /WS_FTP.LOG died immediately when I tried that on the testing box
(which is now being rebuilt).

-----Original Message-----
From: Robert C. Ramsdell [mailto:RCRamsdell at gldd.com]
Sent: Wednesday, November 28, 2001 4:47 PM
To: 'luni at luni.org'
Subject: RE: [LUNI] finding out what rm did


Do I read this right that you put a space in there:
 
rm -rf / WS_FTP.LOG 
          ^
 
If so, were you running as root?  Then everything will be deleted.  (Does
anyone remember the move "Leon"?  This reminds me of the scene with the DEA
agent asking for backup:  "Get me everybody."  "Who?" "EVERYBODY!!!!")  
 
If running as a user wouldn't it remove everything you have write
permissions on?
 
Robert 

-----Original Message-----
From: Lawrence, Sean [mailto:slawrence at seveninteractive.com]
Sent: Wednesday, November 28, 2001 4:04 PM
To: Linux User Group (E-mail)
Subject: [LUNI] finding out what rm did


Does anyone know if there is anyway to find out what a poorly inputed rm
command might have removed?
 
I tried to remove a bunch of WS_FTP.LOG files from the server and I typed rm
-rf / WS_FTP.LOG and stopped it almost immediately and then tried it on my
test server which got immediately hosed.  So I was wondering if there is a
cache of any type or a system log that might have a list of what was
removed.
 
Signed, 
 
Big dummy
 
:)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://luni.org/pipermail/luni/attachments/20011128/b382a27d/attachment.html 


More information about the luni mailing list