Codewizard@hear-me.social to No Stupid Questions@lemmy.world · 1 day agowhat happens when you give the command in the command line rm -rf ?message-squaremessage-square28linkfedilinkarrow-up18file-text
arrow-up18message-squarewhat happens when you give the command in the command line rm -rf ?Codewizard@hear-me.social to No Stupid Questions@lemmy.world · 1 day agomessage-square28linkfedilinkfile-text
minus-square0xKesh@lemmy.dbzer0.comlinkfedilinkarrow-up1·12 hours agoWhat distro was this out of curiosity? As far as I’m aware preserve-root enforcement comes from upstream coreutils
minus-squareHavatra@lemmy.ziplinkfedilinkEnglisharrow-up1·5 hours agoIirc, 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?
minus-square0xKesh@lemmy.dbzer0.comlinkfedilinkarrow-up2·4 hours agoAhhh, 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
What distro was this out of curiosity? As far as I’m aware preserve-root enforcement comes from upstream coreutils
Iirc, it was Debian 10 (Buster). I thought they enforced it (
rmdid support it at the time), but perhaps it was tricked by using an empty variable or something?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