[GTALUG] Man deletes his entire company

Kevin Cozens kevin at ve3syb.ca
Fri Apr 15 14:06:32 EDT 2016


On 16-04-15 01:09 PM, Scott Allen wrote:
> The script actually contained
> rm -rf {foo}/{bar}
>
> The error caused foo and bar to be null so the result was
> rm -rf /

That is why you test your script and just echo commands like the above to 
check the script will fill in the details appropriately. The script could 
also have built a path and stored it in an environment variable then checked 
the variable contents before use.

Also, for this to have deleted everything it would have had to have been run 
with root privileges.

Its one thing for this to happen to a home machine. For a company server you 
would expect to have more than one backup and never hook up more than one 
backup to the live servers at a time.

As has been suggested, it is likely a hoax. Perhaps an April Fools joke that 
someone picked up and ran with not realizing it was a joke.

-- 
Cheers!

Kevin.

http://www.ve3syb.ca/           |"Nerds make the shiny things that distract
Owner of Elecraft K2 #2172      | the mouth-breathers, and that's why we're
                                 | powerful!"
#include <disclaimer/favourite> |             --Chris Hardwick


More information about the talk mailing list