[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Whats your rm-rf story /g/?

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 47
Thread images: 5

File: 102005.gif (3KB, 1000x1500px) Image search: [Google]
102005.gif
3KB, 1000x1500px
Whats your rm-rf story /g/?
>>
I use it when I have to delete something recursively and force it.
>>
File: 1485324054102.gif (1MB, 343x239px) Image search: [Google]
1485324054102.gif
1MB, 343x239px
>>60340129
>>
>forgot to escape whitespace
>entire drive of data deleted
>all gone, like tears in rain
>>
>>60340172
Don't drink and rm, kids.
>>
>>60340044
I did a chmod 777 to / when i was first getting into linux
>>
The other day I accidentally ran rm -rf /home/anon. Entirely serious, I pressed enter too early and I'm the biggest retard alive. I pressed control c basically immediately, and the only stuff it had deleted was about 2 10gb torrents at ~/Torrents.
>>
>>60340197
what happens when you do that?
>>
I only rm -rf one level relative paths
>>
i was trying to prepend a bunch of webm filenames with the contents of the title metadata, ended up turning about 80 of my ~1000 webms into 0 byte files. script worked on the rest of the files though
>>
>>60341133
When you chmod 777 to /, ANYONE AND EVERYONE can read, modify, and execute any of the files on your system
>>
Wanted to delete some directory, forgot I had mounted remote storage inside it. Luckily I had backups :^)
>>
>>60341183
That's what I thought. Can't you just change the permissions back?
>>
>>60341219
Yes. Yes you can. In the same way you can empty a pool with a spoon.
>>
>>60341219
This >>60341342
Reinstall would be the best option is most cases. I certainly wouldn't want to unfuck such a fuck up.
>>
>>60340044
I had a throw away debian install and I was thinking about switching anyway so I rm -rf / for kicks and giggles
>>
>>60340044
>install gentoo
>nothing works
>spend 3 days installing gentoo
>nothing works
>dd if=/dev/zero of=/dev/sda
>install windows
>>
>>60341183
I did that with 666, the system broke
>>
>>60342217
>3 days to install Gentoo
It took me even less than 6h to install Gentoo the first time.
And 5 of those hours were spent configuring /etc/portage/make.conf in the process because I didn't know of /etc/portage/package_use at that time, so I read up what each USE flag does and included or excluded it globally.
>>
I use it most often when i want to remove a cloned git repository.
>>60341342
I think red hat and bsds have repair permissions scripts.
>>
>>60340197
Wouldn't this also break a lot of shit? I imagine lots if binaries/services won't run without being set to certain permissions. For example, OpenSSH won't run without having your home directory config set to 600
>>
>>60340172
>>60340197
>>60341109
>>60341184
>>60342345

Brainlets
>>
>Testing the security of something at work
> know its vulnerable from cve.
>Find allegedly working exploit
>Quickly look through it, mostly byte code looks like standard stuff, but really I'm just script kiddie'ing this
>fucking thing wipes out my home directory
>>
Demoing that it'll fail without --no-preserve-root, it didn't…
>>
Not so long ago I was playing with automatic mounting of sshfs and decided to delete the mount point. Forgot that the fs was still mounted and rm -rfed it. I lost a firefox profile folder and a txt file where I stored my music-to-download list.
>>
>>60344904
http://www.snopes.com/horrors/freakish/window.asp
>>
File: 1493827487646.png (42KB, 500x500px) Image search: [Google]
1493827487646.png
42KB, 500x500px
>>60340044
dd'd a livecd to sda.
Wondered why it took 7 seconds rather than 3 minutes over a USB 2.
The root was encryted, ain't getting anything back from that. Luckily I didn't need anything.

I run a ZFS root mirror on my equipment as an added safeguard against this form of stupidity now.
>>
rm'd my gentoo's /bin directory. :(

had to steal the /bin from live USB gentoo lol
>>
>>60345900
Thanks for the irony anon.
>>
Not rm -rf, but I had a shitload of files in this gigantic subfolder chain and I wanted to move all of them into the parent directory, so I threw together a bash script that I figured should work.
It didn't, and I thought "oh this is a permissions issue" and ran it as admin.

Except running it as admin ran it from the C:\Windows root folder and it started shifting a ton of random files out of their system folders.
Broke windows in a really comedic and interesting way.
>>
File: 1458538758377.jpg (17KB, 400x300px) Image search: [Google]
1458538758377.jpg
17KB, 400x300px
>>60345900
>"Our advice is to apply the same rule to architecture as you do to computers: Don’t ever bet your life on windows not crashing."
>>
>>60340044

rm -rf'd as a regular user and i got owned
>>
>>60340044
>Whats your rm-rf story
Saw /g/ joke about it, googled it, learned not to ever do it. Also learned that it's important to learn what the CLI tools actually do, rather than just copy-pasting what you read on sites.
>>
>>60346408
>accidents never happen
>>
>>60346420
how you accidentally rm-rf /
>>
>>60346466
http://www.theregister.co.uk/2015/01/17/scary_code_of_the_week_steam_cleans_linux_pcs/
https://github.com/MrMEEE/bumblebee-Old-and-abbandoned/issues/123
>>
>>60346466
Sudo -i in conjunction with the abuse of tab-completion.
>>
>>60340044
 rm -rf OP 
>>
Killed my main partition using gparted back in ~2007 by targeting the wrong disk. I was so young and reckless. Lost a lot of important data and only recovered a small amount over a few days using photorec.

These days when I'm working in a partition editor I physically disconnect disks I'm not editing.
>>
>told i'm fired in a week
>minutes before i leave, head goes to the bathroom
>alias git-pull=rm -rf
>leave
>>
File: 1467443039769.png (332KB, 964x798px) Image search: [Google]
1467443039769.png
332KB, 964x798px
>>60340044
>late night
>manually backing up my code directory
>try to drag folder onto other drive
>errors
>delete old backup to try to fix errors
>turns out I had two of the same window open
>>
> chown -R www-data:www-data / etc/nginx/somefile
On my webserver via ssh
Could not sudo anymore since sudo refuse to work if the sudoers file is not root's
Had to drive home to boot in single user mode
>>
This thread gives me cold shivers. Remember to do regular offline backups kids.
>>
>using OpenBSD
>time for an update
>decide to overwrite system partitions with updated version
>start install disk
>it suggests a complete overwrite as default
>want to exit installer to command line
>press C-d to exit
>installer thinks this means "go ahead"
>overwrite begins
>stop it with C-c
>too late
>lost everything, recoveries failed
>had enough of OpenBSD
>install gentoo
>>
>>60340044
I once accidentally my movies and music. I was deleting mount points from /mnt and my media partition was still mounted.
>>
>>60348889
What command did you run? sudo rmdir /mnt/* wouldn't have done this.
>>
>>60348391
nice backup strategy bro
Thread posts: 47
Thread images: 5


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.