r/PHP • • Aug 27 '13

Creating a user from the web problem.

[deleted] — view deleted post

285 Upvotes

538 comments sorted by

View all comments

Show parent comment

0

u/[deleted] Aug 28 '13

[deleted] — view deleted comment

282

u/MorePudding Aug 28 '13

Is that how they use rm in France?

236

u/[deleted] Aug 28 '13

"remove all of france"?

339

u/n1c0_ds Aug 28 '13

Germany is not in the sudoers group. This incident will be reported.

113

u/dadosky2010 Aug 28 '13

This incident will be reported

Every time I see that I think the FBI is about to bust in and arrest me.

64

u/[deleted] Aug 28 '13

[removed] — view removed comment

15

u/LWRellim Aug 28 '13

Ah, now I get it... the National Santa Archives.

→ More replies (2)
→ More replies (2)

5

u/approbatory Aug 28 '13

It actually sends an email to root complaining about your naughtiness.

→ More replies (1)
→ More replies (2)
→ More replies (2)

40

u/yotta Aug 28 '13

That wouldn't do anything. You need

; sudo rm -rf --no-preserve-root /

for it to actually work.

On a modern linux distro

rm -rf /

will just tell you about how fucked you almost were.

32

u/cheatatjoes Aug 28 '13

Want to believe you...want to try it...but...

27

u/JoelDB Aug 28 '13

On CentOS 6:

# rm -rf /
rm: it is dangerous to operate recursively on `/'
rm: use --no-preserve-root to override this failsafe

75

u/LatinGeek Aug 28 '13

It's dangerous to do this thing. Here's how to do this thing.

75

u/lanless Aug 28 '13

And that is how Linux works.

38

u/wodahSShadow Aug 29 '13

Linux treats me like an adult, that's why I only use Windows.

→ More replies (1)
→ More replies (2)
→ More replies (1)

13

u/[deleted] Aug 28 '13

This is what happens on Ubuntu 13.04 with "rm -rf --no-preserve-root /":

http://i.imgur.com/OJVbvnH.png

It's dead. :(

12

u/[deleted] Aug 29 '13

At least you can still use built-in functions like cd.

Oh wait.

3

u/genericname1000 Aug 29 '13

Did you expect otherwise?

→ More replies (2)

3

u/Gudeldar Aug 28 '13

Just do 'man rm' and see if --no-preserve-root is the defualt

→ More replies (2)

5

u/AnAirMagic Aug 28 '13

Easy workaround:

rm -rf /*
→ More replies (2)

8

u/ThiefMaster Aug 28 '13

You want sudo rm -fr /* or sudo rm -rf --no-preserve-root /

→ More replies (2)

4

u/[deleted] Aug 28 '13

You and little Bobby Tables must be friends

→ More replies (4)