Re:Ooops.
by jrockway on Thursday June 16, 2011 @10:44AM
(#2661431)
I don't remember the exact details, but a few years ago there was a Perl module that did something like:
during the execution of its test suite. The author didn't catch it in testing because he never ran "make test" as root (who would?). But people on the Internet ran "make test" as root, with disastrous consequences.
[ Parent
| on HN ]
I'm not sure if you're being sarcastic with the "who would?" portion of your comment, but doesn't cpan run tests, by default, whenever installing something? And, most people who aren't Perl developers with their own private Perl installation install CPAN modules as root, so they are available to all users. So, to answer the question seriously: Most people.
Uh, the cpan client runs "make install" as root, not "make test".
Re:Ooops.
by floriancargoet on Thursday June 16, 2011 @11:46AM
(#2661727)
$ rm -rf /
rm: it is dangerous to operate recursively on `/'
rm: use --no-preserve-root to override this failsafe
Re:Ooops.
by mootothemax on Thursday June 16, 2011 @11:54AM
(#2661772)
rm: use --no-preserve-root to override this failsafe
Brilliant, at long last at least a bit of protection! :) Sadly, I can still remember doing this to my one of my first Linux installs, albeit via the classic:
rm -fr .*
On the plus side, that day I learned one hell of a lot about how Linux works ;)