Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic

Have you ever run rm -rf / or similar?
Yes.  22%  [ 30 ]
Yes. Once.  20%  [ 27 ]
No.  56%  [ 75 ]
What's rm? Is that like the recycle bin in Windows?  2%  [ 3 ]
Total votes : 135
Author Message
 Post subject:
PostPosted: Wed Aug 19, 2009 6:02 pm 
Offline
Senior Member
User avatar

Joined: Sun Feb 08, 2004 7:18 pm
Posts: 562
Location: Austin
That story is a great lesson for the kids out there.

I'm really surprised you didn't get fired. I have to ask: did the boss who was so understanding know that this was a result of horsing around as opposed to an accident?


Top
   
 Post subject:
PostPosted: Wed Aug 19, 2009 6:11 pm 
Offline
Senior Member

Joined: Thu Aug 28, 2003 12:57 am
Posts: 273
Xan wrote:
That story is a great lesson for the kids out there.

I'm really surprised you didn't get fired. I have to ask: did the boss who was so understanding know that this was a result of horsing around as opposed to an accident?


Yes, he knew the full story of what happened. Of course, he was a student also - I guess I was a little in accurate when I said 'boss', he was actually the student leading the project, but our real 'boss' never found out about it. I think as a student he was a bit more understanding than someone older would have been.


Top
   
 Post subject:
PostPosted: Thu Nov 26, 2009 3:53 pm 
Offline
Senior Newbie

Joined: Sun Nov 22, 2009 12:16 pm
Posts: 15
How fitting that my intro post is in this thread. I was lurking over here last week while I setup my server, so can I blame some subconscious memory of 'rm -rf /' from the forum? Nah, more like trying to multitask on a lack of sleep.

So I've been on Linodes for about a week, really loving it. Hosting my game clan's website. It isn't a big site, but I enjoy the freedom of a VPS and like having the power to spare. Last machine was in bad shape, so I was looking forward to calling it quits.

So, last night I pull down my last backups, check them for completeness, and then alt-tab to the terminal. Hey, didn't I read about someone rm -rf /'ing an old VPS to decommission it? Yeah, that sounds fun. Until about 10 seconds later when I see the hostname and realize I'm nuking my Linode. Oy

Wound up killing the OS, of course - also my MySQL DB and half of my web root. Latest backup was only about 24hrs old, so not too bad. Learning experience, I guess.

Y'know, I think it was karma taking me down a notch. I was just riding a high from the fact that I started my Linode on Ubuntu and decided the evening before that I'd prefer Debian. Provision a new node, configure, copy files, swap IPs.. Hardly any downtime. I was all sorts of proud of my new Debian install and how quickly I set it up. Well, now I get to practice setting it up again.

Right after I get some turkey..

Happy Thanksgiving folks


edit -- I jest, but the trauma must still be there. I hit Submit and my eyes skimmed over the post as it went away. Had an "Oh crap!" second as I saw 'rm -rf /' :shock:


Top
   
 Post subject:
PostPosted: Fri Nov 27, 2009 10:44 am 
Offline
Senior Member

Joined: Wed Jan 21, 2009 7:13 pm
Posts: 126
Location: Portugal
Hello,

I never done "rm -rf /" but I've leaned some lessons :) ... fo instance, my local backup is done to a external image mounted as "/.backup".

"rm -rf /" won't eat the dot!!!


Top
   
 Post subject:
PostPosted: Fri Nov 27, 2009 3:05 pm 
Offline
Senior Member
User avatar

Joined: Tue Nov 24, 2009 1:59 pm
Posts: 362
nfn wrote:
"rm -rf /" won't eat the dot!!!

"rm -rf /" will. Dot protects you from "rm -rf *".

I had a "rm -rf dir /" moment, but managed to notice and ^C it before it finished with "dir". Whew.

What I regret much more was a local damage... I was tired, finished a piece of code after many hours... and, don't ask me how, it must have been the gremlins or something... I typed "cp filename.ext{.bak,}" instead of "cp filename.ext{,.bak}"...

Re-coding previous two hours of work in this state of mind took most of the night.


Top
   
 Post subject:
PostPosted: Fri Nov 27, 2009 5:00 pm 
Offline
Senior Member

Joined: Sun Aug 02, 2009 1:32 pm
Posts: 222
Website: https://www.barkerjr.net
Location: Connecticut, USA
On some old servers, there used to be a command called "ci". I've always been a fan of the "vi" editor. I don't remember what "ci" was supposed to do, but I do know that whenever I typed "ci filename", it would wipe out the file. Then I was left digging through my backups. Needless to say, I shortly deleted the "ci" executable.


Top
   
 Post subject:
PostPosted: Fri Jul 30, 2010 12:46 am 
Offline
User avatar

Joined: Thu Jul 29, 2010 7:39 pm
Posts: 1
Website: http://earfolds.com/
WLM: earfolds@live.com
Yahoo Messenger: earfolds
AOL: earfolds
Location: United Kingdom
I have run rm -rf / intentionally. It was fun.

The biggest mistake I've made is attempting to install Filezilla on my server when I meant to do it on my home computer. Thankfully, the dependency list was enough warning. It wasn't exactly a big mistake, now that I mention it.

I suppose the real mistake was running ssh in the same terminal window as a local shell.

_________________
Image


Top
   
 Post subject:
PostPosted: Fri Jul 30, 2010 4:40 pm 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
BarkerJr wrote:
On some old servers, there used to be a command called "ci". I've always been a fan of the "vi" editor. I don't remember what "ci" was supposed to do, but I do know that whenever I typed "ci filename", it would wipe out the file. Then I was left digging through my backups. Needless to say, I shortly deleted the "ci" executable.


ci is like an ancient version of CVS (http://www.cs.colostate.edu/helpdocs/RCS.html)

earfolds wrote:
I suppose the real mistake was running ssh in the same terminal window as a local shell


I make my shells different colours for local and remote


Top
   
 Post subject:
PostPosted: Thu Aug 05, 2010 12:10 pm 
Offline
Senior Member

Joined: Sat Mar 28, 2009 4:23 pm
Posts: 415
Website: http://jedsmith.org/
Location: Out of his depth and job-hopping without a clue about network security fundamentals
obs wrote:
earfolds wrote:
I suppose the real mistake was running ssh in the same terminal window as a local shell


I make my shells different colours for local and remote

I've learned to check the hostname in my prompt, which is easiest because of the number of servers that I administer. On my servers, root in the prompt is bold red, too, so I know to double check before carriage return.

_________________
Disclaimer: I am no longer employed by Linode; opinions are my own alone.


Top
   
 Post subject:
PostPosted: Thu Aug 05, 2010 4:24 pm 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
jed wrote:
I've learned to check the hostname in my prompt, which is easiest because of the number of servers that I administer. On my servers, root in the prompt is bold red, too, so I know to double check before carriage return.


Mine's pink!!!...no idea why it's just the default...honest.


Top
   
 Post subject:
PostPosted: Sun Aug 08, 2010 6:19 pm 
Offline
Senior Member
User avatar

Joined: Wed Mar 17, 2004 4:11 pm
Posts: 554
Website: http://www.unixtastic.com
Location: Europe
I've run 'rm -rf /' a few times to trash chroot jails. I've never hosed a system by accident with it.

I find the fact Linux rm has a --no-preserve-root option rather sad but I can see why they added it.


Top
   
PostPosted: Sat Dec 18, 2010 12:04 am 
Offline

Joined: Fri Dec 17, 2010 11:59 pm
Posts: 1
Installing a new prolog based system on our lone linode that runs production for a small commercial product. The data on the server has lots of turnover so it's hard to have current backups.

The engineer doing the install thinks he's in some directory and types

sudo rm -r lib

ooops..... he was in /


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group