/tmp is world-writable. If you get permission-errors, you should become suspicious.
Also, whenever you write “sudo rm -rf” you should quadruple-check if that’s really what you want to do.
Non-interactively deleting entire directories in root space isn’t something you should have to do normally.
I ran the command without sudo first. It had a bunch of permission errors removing stuff in
/tmp
. So I retried but with sudo/tmp is world-writable. If you get permission-errors, you should become suspicious.
Also, whenever you write “sudo rm -rf” you should quadruple-check if that’s really what you want to do.
Non-interactively deleting entire directories in root space isn’t something you should have to do normally.
/tmp might be world writable but everything created in there belongs to the respective users.