Choose style:

Author Topic: Man accidentally 'deletes entire company' with one line of code  (Read 3129 times)

0 Members and 1 Guest are viewing this topic.

Offline VinDSL

  • Global Moderator
  • Hero
  • *****
  • Posts: 5183
  • Karma: 939
  • Peppermint Mod
    • View Profile
  • Peppermint version(s): Developmental Builds

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4808
  • Karma: 1012
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 8 Respin-2 (64-bit)
Re: Man accidentally 'deletes entire company' with one line of code
« Reply #1 on: April 14, 2016, 09:06:22 pm »
Epic !!!  8)

SOURCE:  http://www.independent.co.uk/life-style/gadgets-and-tech/news/man-accidentally-deletes-his-entire-company-with-one-line-of-bad-code-a6984256.html
I had to first laugh and then i felt the cold shiver of horror go up my spine.  I wonder how that shiver was for Mr Marsala?  You're right though, it's epic  :o.
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.

Offline Razznak

  • Jr. Member
  • **
  • Posts: 99
  • Karma: 16
    • View Profile
    • Quora
  • Peppermint version(s): 6 and 7
Re: Man accidentally 'deletes entire company' with one line of code
« Reply #2 on: April 14, 2016, 10:14:02 pm »
Ohh man. That's rough.  :o

*inexperienced user asking a stupid question and is afraid to test it on his own* it seems as though that command should require sudo, right? And if it does, wouldn't that have given him a second chance to back away?
BTC Donations: 1rAZZNAkKp3GS4uc15YsbSxSPnFbfErt6

Offline Slim.Fatz

  • Trusted User
  • Veteran
  • *****
  • Posts: 1727
  • Karma: 464
  • Where's the mouse?
    • View Profile
  • Peppermint version(s): Peppermint 7, 8.5 & 9 - 64bit
Re: Man accidentally 'deletes entire company' with one line of code
« Reply #3 on: April 15, 2016, 12:04:57 am »
Ohh man. That's rough.  :o

*inexperienced user asking a stupid question and is afraid to test it on his own* it seems as though that command should require sudo, right? And if it does, wouldn't that have given him a second chance to back away?
Hi Razznak,

If he is logged in as the administrator then he will not be asked again for his password or need to invoke sudo. A good example of why it is not a good idea to log in as the super user ...  ;)

Regards,

-- Slim
"Life first -- Peppermint a close 2nd!" -- Zeb

Tread lightly: Fluxbox, JWM, i3, Openbox, awesome

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4808
  • Karma: 1012
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 8 Respin-2 (64-bit)
Re: Man accidentally 'deletes entire company' with one line of code
« Reply #4 on: April 15, 2016, 01:12:01 am »
Quote
...If he is logged in as the administrator then he will not be asked again for his password or need to invoke sudo. A good example of why it is not a good idea to log in as the super user ...  ;)
This why I would never consider using PuppyLinux.  Why the devs have you login as root/super user is beyond my comprehension :-\?  Even if you do make a user account, you can't log into it directly.  I cringe when I see advice recommending PuppyLinux to new users   :-X.
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4808
  • Karma: 1012
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 8 Respin-2 (64-bit)
Re: Man accidentally 'deletes entire company' with one line of code
« Reply #5 on: April 15, 2016, 01:33:06 am »
Hi Razznak, no don't test it out.  It'll end in tears for sure  :'(.  If you really can't resist.  Wait until Peppermint Severn is released.  Prepare the installation media.   Backup all your DATA folders: Documents, Downloads, Music, Pictures, Videos, etc to a removable hard disk and unplug it and anything else storing DATA.  Now run that command and watch the devastation  :o.   Install Peppermint Seven and restore your backup.  I'll still advise you don't do it.  It not called "nuking" without a reason  :)!!
« Last Edit: April 15, 2016, 06:49:38 am by AndyInMokum »
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.

Offline emegra

  • Global Moderator
  • Veteran
  • *****
  • Posts: 1878
  • Karma: 410
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 9 64bit
Re: Man accidentally 'deletes entire company' with one line of code
« Reply #6 on: April 15, 2016, 05:35:03 am »
I had a similar situation some time ago, I had a drive on my NAS full of family video & photos (you know the irreplaceable stuff) and I had rsync sync the entire volume to an external USB HDD once a week then unknown to me the source drive become corrupted when I realised I thought good job I'm a smart cookie and have it all backed up but of course all that happened was that rsync overwrote the good files on the backup drive with the corrupted files on the source drive, not so smart after all

I still remember the gut wrenching feeling when I realised what happened, fortunately I managed to recover almost all of the files with the help of someone on the Linux UK forum using ddrescue & photorec


Graeme
If you can keep your head while all around are losing theirs then you're not quite grasping the situation

Offline GNULINUX

  • Trusted User
  • Member
  • *****
  • Posts: 987
  • Karma: 311
    • View Profile
  • Peppermint version(s): Peppermint Six (x64)
Re: Man accidentally 'deletes entire company' with one line of code
« Reply #7 on: April 15, 2016, 06:00:21 am »
Because I have a newly created Peppermint VM with a snapshot enabled...  :P

Code: [Select]
username@PPM ~ $ sudo rm -rf /
[sudo] password for username:
rm: it is dangerous to operate recursively on ‘/’
rm: use --no-preserve-root to override this failsafe
username@PPM ~ $
Failsafe in action on Peppermint Six!

DISCLAIMER:   DO NOT RUN THAT COMMAND unless you know what you're doing!

Greets!
Peppermint 6  (x64)   -   Windows 7 Ultimate SP1  (x64)
Running different OS flavors in VirtualBox, just for fun!

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25300
  • Karma: 2793
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Man accidentally 'deletes entire company' with one line of code
« Reply #8 on: April 15, 2016, 06:40:02 am »
I know I shouldn't but .. LOL :))

I'm with the guy that said 'bad planning compounded by incompetence' .. I mean who runs that without a clear firewall between the target machine and the backups ?

I'm actually finding it a bit hard to believe to tell the truth .. unless he owns his own servers, if you rent a VPS the hosting company should be taking nightly backups  :-\

But no matter how you look at it, "off site backups" are NOT "off site" if they're mounted .. if they're mounted locally, they're "local" backups.
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline scifidude79

  • Global Moderator
  • Hero
  • *****
  • Posts: 4029
  • Karma: 863
    • View Profile
  • Peppermint version(s): Peppermint 9
Re: Man accidentally 'deletes entire company' with one line of code
« Reply #9 on: April 15, 2016, 09:36:23 am »
:)) :)) :)) :)) :)) :))  (this is just too stupidly funny not to)

I mean, if you're that freaking stupid to 1. as PCNetSpec said, not have a firewall protecting your backups and 2. not just run a code without knowing exactly what it does, you deserve what you get.  I feel only sorry for his 1500+ customers, who didn't realize their sites were being hosted by a schmuck.  Unless they had backups on their local machines, their sites are now irretrievably lost.

Offline rjm65

  • Veteran
  • ****
  • Posts: 1003
  • Karma: 300
  • I have Peppermint Fresh Breath. :P
    • View Profile
  • Peppermint version(s): Win-98 /Win-7/ Peppermint 9
Re: Man accidentally 'deletes entire company' with one line of code
« Reply #10 on: April 15, 2016, 10:07:33 am »
this reminds me of the old I love you .bat file that was downloading into windows machines in the mid 90's...
the file would display a movie usually a porno someone downloaded, and while the 5 minute movie was playing via the .bat file you ran to play it, they had in the bat file valid dos commands to attrib your msdos.sys and command.com files on the drive then delete them, also they would delete your entire windows directory while the movie was playing, and as soon as you shut down, you had no machine next boot up...  LOL   and the file passed all dos and windows based virus scanners cause they were valid dos commands...   ;)
Back then my way around this was naming the windows directory something else like winnt, and if it happened to someone, all i had to do was restore their msdos.sys file and command .com file and they were good to go...
« Last Edit: April 15, 2016, 10:09:57 am by rjm65 »
Robert
Peppermint 9 User

Gateway Solo 9300 Pro
IBM T40

Offline Slim.Fatz

  • Trusted User
  • Veteran
  • *****
  • Posts: 1727
  • Karma: 464
  • Where's the mouse?
    • View Profile
  • Peppermint version(s): Peppermint 7, 8.5 & 9 - 64bit
Re: Man accidentally 'deletes entire company' with one line of code
« Reply #11 on: April 15, 2016, 10:32:54 am »
OK, rjm65: time confess! You did that in order to safely view all of those pornos !!  :D :D :D

Regards,

-- Slim
"Life first -- Peppermint a close 2nd!" -- Zeb

Tread lightly: Fluxbox, JWM, i3, Openbox, awesome

Offline scifidude79

  • Global Moderator
  • Hero
  • *****
  • Posts: 4029
  • Karma: 863
    • View Profile
  • Peppermint version(s): Peppermint 9
Re: Man accidentally 'deletes entire company' with one line of code
« Reply #12 on: April 15, 2016, 11:51:10 am »
He does seem to have firsthand knowledge of it, right down to the specifics of it being included with porn....

Offline rjm65

  • Veteran
  • ****
  • Posts: 1003
  • Karma: 300
  • I have Peppermint Fresh Breath. :P
    • View Profile
  • Peppermint version(s): Win-98 /Win-7/ Peppermint 9
Re: Man accidentally 'deletes entire company' with one line of code
« Reply #13 on: April 15, 2016, 11:59:42 am »
OK, rjm65: time confess! You did that in order to safely view all of those pornos !!  :D :D :D

Regards,

-- Slim
nope, I was just stating the facts as I remember them, it always seemed that every guy that brought me their machine to fix, the last thing they did was watch a downloaded porno movie...  LOL  I did advise them it was probably in their best interest to download jpg pics only however...   LOL   :P
Robert
Peppermint 9 User

Gateway Solo 9300 Pro
IBM T40

Offline perknh

  • Trusted User
  • Hero
  • *****
  • Posts: 3814
  • Karma: 299
  • Soy un huevo, nada más.
    • View Profile
  • Peppermint version(s): Peppermint 10
Re: Man accidentally 'deletes entire company' with one line of code
« Reply #14 on: April 17, 2016, 02:35:59 pm »
MAN ACCIDENTALLY DELETES HIS ENTIRE COMPANY WITH ONE WRONG COMMAND

By Abhishek for It's F.O.S.S.

http://itsfoss.com/accidentally-deletes-company-wrong-command/

There are some good one one-liners, and tips, in this one!  ;)
We're all Peppermint users and that's what matters  ;).  -- AndyInMokum