Live data from Hacker News

What to do with the “rm -rf” hoax question

meta.serverfault.com

11–20 of 71 posts

Re: What to do with the “rm -rf” hoax question

#12

Does it matter that it didn't happen, if it could happen? Sounds like a serious issue.

Not so easily.

I wrote Ansible, but no longer work on it.

There are numerous problems with the hoax.

(A) the user skipped --no-preserve-root to the command, if he really wanted to delete /, he would need to try harder on a modern distro, because the rm command would stop the attempt (B) ansible by default fails on undefined variables, meaning it would never execute the command (C) Jinja template variables are actually {{foo}} not {foo}, so {foo} in bash prints a literal foo

So this triply couldn't happen. Finally, most people should probably be using the file module to delete files, though if people want to call out to the shell they can with any config tool.

I hate this was even posted because it reflects poorly on me and was in exceptionally bad taste to imply ansible would let it happen.

But can you shoot yourself in the foot with any config tool? If you want to, yes. Can you be bitten by a bug? Yes. Do tool authors make mistakes? Yes.

But it was a mean thing to do, and it's not something the tool would even allow, and it hurts when tech journalists (arguably some of the worst reporters in existance) blindly parrot the article without fake checking (just like they'll also do fake comparisons that just recycle blog posts).

Re: What to do with the “rm -rf” hoax question

#15
post #13

Reminds me of this post. Poster created a question and immediately answered it with his own link. http://stackoverflow.com/questions/9751207/how-can-i-use-got...

It's not against the rules to answer your own question, as far as I'm aware. If the question is one that other users may ask, and you have an answer, I don't see what's wrong with posting questions and immediately answering them.

Re: What to do with the “rm -rf” hoax question

#16
Firstly, let me say I find StackOverflow's trigger-happy attitude as annoying as everyone else. "Not a real programming question" for questions needed to solve programming problems or blocking comparisons ... #fail.

Now that I've said that, I do think this hoax question should be closed because one of the principles is that it should be based on real problems people face, which is a good way to keep the signal-to-noise ratio high. By definition, this hoax is not real. While we could imagine it's possible, that's pure speculation and there are infinite other scenarios we could imagine, but we don't need to ask them as StackOverflow questions.

On a practical note, it's worth banning just to prevent a thousand viral marketers and recruiters falling over themselves to compose the most attention-grabbing fake questions in the next month.

Re: What to do with the “rm -rf” hoax question

#17
post #15
post #13

Reminds me of this post. Poster created a question and immediately answered it with his own link. http://stackoverflow.com/questions/9751207/how-can-i-use-got...

It's not against the rules to answer your own question, as far as I'm aware. If the question is one that other users may ask, and you have an answer, I don't see what's wrong with posting questions and immediately answering them.

To expand, I don't see anything wrong with the joke question, I just think they both fall in the same category.

The user created the question and answered it immediately with a link to his goto library.

The issue is not answering your own question, but more about posting your own question to answer.

Suppose everyone who creates a startup, posts a question & answer to advertise their own project.

Re: What to do with the “rm -rf” hoax question

#18
post #15
post #13

Reminds me of this post. Poster created a question and immediately answered it with his own link. http://stackoverflow.com/questions/9751207/how-can-i-use-got...

It's not against the rules to answer your own question, as far as I'm aware. If the question is one that other users may ask, and you have an answer, I don't see what's wrong with posting questions and immediately answering them.

There's even a badge for answering your own question ("self learner"), if your answer is a good one. http://meta.stackexchange.com/a/12519
Post reply on HN