rm -rf /* protection

Discussion in 'Software' started by pclover, Sep 10, 2009.

  1. pclover

    pclover MajorGeek

    Is there a way to prevent running rm -rf /* ?
     
  2. BoredOutOfMyMind

    BoredOutOfMyMind Picabo, ICU

    Let's hope someone new does NOT try this!!

    :p
     
  3. pclover

    pclover MajorGeek

    rolleyes
     
  4. MoPaR

    MoPaR Private First Class

    Is the PC used only by you or other ppl as well?

    The only suggestion I have atm is to not let other users have sudo priveleges, rm -rf /* can't delete system files/folders without su priv, the home directory on the other hand may not be so lucky
     
  5. plodr

    plodr Major Geek Super Extraordinaire

    Most people don't use the terminal so the odds of typing that command are low. They are so used to windows that they are "point and click" oriented.

    You have exactly the same protection in linux from running stupid commands as you do in windows when someone tells you to type format c at the prompt and you do it without finding out what it does. There is no cure for stupid - nor safeguards either.
     
  6. Bugballou

    Bugballou MajorGeek

    There is no cure for stupid - nor safeguards either.
    :-D

    "I would rather have a bottle in front of me than a frontal lobotomy"
     
  7. pclover

    pclover MajorGeek

    I know linux not giving people root permissions but I'm wondering if there is a way to prevent accidentally running it or running a similar command like rm -rf /bin/*

    EDIT:

    One way I thought of is not using a root account.
     
  8. loonacycle

    loonacycle Private E-2

    that group of keystrokes has been more then covered here in the past.

    a Mod should have deleted or edited the post.

    you self-proclaimed Gurus...know better!

    wheres Ady when he's needed ? :(
     
  9. pclover

    pclover MajorGeek

    I searched didn't find anything.
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds