This man deleted his entire company with one line of wrong code

Man accidentally ‘deletes his entire company’ with a one line of wrong code

A man accidentally deleted his entire company because of one mistaken line of code. Yes, you heard it right. According to the Independent, hosting provider Marco Marsala removed all traces of his company and the websites he manages for his customers after he accidentally told his computers to delete everything in its servers.

Marsala wrote on a forum for server experts called Server Fault, that he was stuck after mistakenly running destructive code on his own computers, which immediately went into a bit of a panic afterwards.

The command he mistakenly typed in was โ€˜rm -rfโ€™. To put it simply: โ€œrmโ€ is short for โ€œremove,โ€ โ€œrโ€ means โ€œthis directoryโ€ and โ€œfโ€ means โ€œforce,โ€ which in this context means โ€œDo not open any dialogue boxes or trigger any warnings.โ€ Normally the code will delete everything it is told to but because of the way it was written, no particular area was specified. Thus, it deleted everything on the servers.

In other words, this innocent-looking little five-character code actually tells the computer to delete everything, overriding all of the usual warnings that pop up when files are being deleted.

As a result of the wrong command, not only the sites got wiped off, but it also deleted all his backups because the drives that were backing up the computers were mounted to it.

โ€˜All servers got deleted and the offsite backups too, because the remote storage was mounted just before by the same script (that is a backup maintenance script),โ€™ he wrote.

Unfortunately for him, the other experts also couldnโ€™t be of much help to him โ€“ basically informing him that he had possibly destroyed his whole business and was unlikely he would be able to recover any of the data.

โ€œI feel sorry to say that your company is now essentially dead,โ€ wrote a user called Sven. โ€œYou might have an extremely slim chance to recover from this if you turn off everything right now and hand your disks over to a reputable data recovery company.”

Another poster commented that: โ€œYou’re going out of business. You don’t need technical advice, you need to call your lawyer.โ€

โ€œWell, you should have been thinking about how to protect your customers’ data before nuking them,โ€ wrote one person calling himself Massimo. โ€œI won’t even begin enumerating how many errors are simultaneously required in order to be able to completely erase all your servers and all your backups in a single strike.

โ€œThis is not bad luck: it’s astonishingly bad design reinforced by complete carelessness,โ€ he added.

Source: Independent

Kavita Iyer
Kavita Iyerhttps://www.techworm.net
An individual, optimist, homemaker, foodie, a die hard cricket fan and most importantly one who believes in Being Human!!!

Subscribe to our newsletter

To be updated with all the latest news

Read More

Suggested Post