• fork bomb: Creates infinite processes, leading to system slowdown or crash.
  • rm -rf --no-preserve-root /: Deletes all files, rendering the system unusable.
  • chmod 777: Grants full access to everyone for a file, creating a security risk.
  • A_Very_Big_Fan@lemmy.world
    link
    fedilink
    English
    arrow-up
    7
    ·
    1 year ago

    Is there any legit reason to use rm -rf / --no-preserve-root? It seems like it’s mere existence is a security risk lol

    • DarkenLM@kbin.social
      link
      fedilink
      arrow-up
      11
      arrow-down
      1
      ·
      1 year ago

      Linux wanted to be different than Windows and give the user total control. If the user wants to nuke their entire computer, they should be able to.

    • LastoftheDinosaurs@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      6
      ·
      1 year ago

      The--no-preserve-root flag didn’t exist for a long time. It was added to rm because people kept trolling new Linux users on forums who would just run any command you gave them without understanding what they were doing.

    • tal@lemmy.today
      link
      fedilink
      English
      arrow-up
      5
      ·
      1 year ago

      It seems like it’s mere existence is a security risk lol

      Not really. You don’t have the app enforce that, but the OS. Otherwise, I can just go write a program that does the same thing and use that.