Check out this near miss

David Bandel david.bandel
Thu May 10 08:13:55 PDT 2007


On 5/10/07, Man-wai Chang <mwchang at i-cable.com> wrote:
> James McDonald wrote:
> > I was trying to delete old files in the PDF dir but I missed the dot.
> >
> > Thank goodness I wasn't logged in as root.
> >
> > jm at mail:~/PDF$ rm -rf /*
> > rm: cannot remove `/bin/bash': Permission denied
> > rm: cannot remove `/bin/rbash': Permission denied
> > rm: cannot remove `/bin/sh': Permission denied
> > rm: cannot remove `/bin/cat': Permission denied
> > rm: cannot remove `/bin/chgrp': Permission denied
> > rm: cannot remove `/bin/chmod': Permission denied
> > rm: cannot remove `/bin/chown': Permission denied
> > rm: cannot remove `/bin/cp': Permission denied
> > rm: cannot remove `/bin/date': Permission denied
> > rm: cannot remove `/bin/dd': Permission denied
> > rm: cannot remove `/bin/df': Permission denied
> > rm: cannot remove `/bin/dir': Permission denied
> > rm: cannot remove `/bin/echo': Permission denied
> > rm: cannot remove `/bin/false': Permission denied
> > rm: cannot remove `/bin/ln': Permission denied
> > rm: cannot remove `/bin/ls': Permission denied
> > rm: cannot remove `/bin/mkdir': Permission denied
> > rm: cannot remove `/bin/mknod': Permission denied
> > rm: cannot remove `/bin/mv': Permission denied
> > rm: cannot remove `/bin/pwd': Permission denied
> > rm: cannot remove `/bin/readlink': Permission denied
> > _______________________________________________
> > Linux-users mailing list ( Linux-users at linux-sxs.org )
> > Unsub/Password/Etc: http://mail.linux-sxs.org/cgi-bin/mailman/listinfo/linux-users
> >
> > ***  OFF TOPIC conversations should get sent to general at linux-sxs.org.  This rule will be strictly enforced.  ***
> >
> > Need to chat further on this subject? Check out #linux-users on irc.linux-sxs.org !
>
> ALWAYS alias rm=`rm -i` in /etc/bashrc or /etc/profile.

What horrid advice.  Baby Sysadmins that grow up _expecting_ this
alias to always be there are the ones who destroy entire file systems
when it's not.

NEVER depend on aliases like the above.  They're the first things I
unalias on a RedCrap system.

>
> :)

:(


Ciao,

David A. Bandel
-- 
Focus on the dream, not the competition.
            - Nemesis Air Racing Team motto



More information about the Linux-users mailing list