I have a working Python script that is mainly designed to block (shut down) my Linux laptop whenever I try to get to any NSFW content. However I don’t know how to secure it from being killed by me as I have sudo privileges and I know the root password. I can change the password and give the new password to my accountability partner, there is no problem, but still don’t know any methodology that I can use to secure my script during the run time even with a special password.
I tried to use services and make it always restart but this also doesn’t make sense because I can change the script directory any time then by that I have disabled it.
mohamed walid is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.