@nostupidquestions what happens when you give the command in the command line rm -rf ?

you are viewing a single comment's thread
view the rest of the comments
[–] 1 point 2 months ago (2 children)

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

  • source
  • parent
  • hideshow 2 child comments
  • [–] 1 point 2 months ago (1 child)

    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?

  • source
  • parent
  • hideshow 1 child comment
  • [–] 2 points 2 months 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

  • source
  • parent