Is there a possible way that I can execute a script, say
root user on every login to my system via SSH?
I've gone through a similar question which says to add the script execution to
.bashrc file. This is not much helpful as I'd have to add it to every users' config file. Also, they'd still have ability to remove it.
Execution as root is not as important as denying the users' the power to stop its execution. The OS is debian, if that helps in any way.