• 0xKesh@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    1
    ·
    12 hours ago

    What distro was this out of curiosity? As far as I’m aware preserve-root enforcement comes from upstream coreutils

    • Havatra@lemmy.zip
      link
      fedilink
      English
      arrow-up
      1
      ·
      5 hours ago

      Iirc, it was Debian 10 (Buster). I thought they enforced it (rm did support it at the time), but perhaps it was tricked by using an empty variable or something?

      • 0xKesh@lemmy.dbzer0.com
        link
        fedilink
        arrow-up
        2
        ·
        4 hours ago

        Ahhh, I just re-read your comment, and yeah that would have been the case.

        I think another quick bypass without using the proper flag could be to use a wildcard (for example, rm -rf /*), I think that might work too maybe