Hacker News new | ask | show | jobs
by not_your_vase 493 days ago

  shred_and_fill "$HOME/.local/share/Trash"
  shred_and_fill "/root/.local/share/Trash"

If I, as a sysadmin give root rights to my user, and that user deletes my (real root) files, even from the Trash or anywhere else, then the next step includes such a level of violence that's not compatible with any kind of Code of Conduct.
1 comments

If you give a user wheel/sudo/root privileges, then they will be able to delete the root user's files regardless of using this script. I will consider removing this line and thus the required superuser privileges in the next release.