This question makes two assumptions:
- My root user's interactive shell runs bash 
- .bashrcis only called on interactive shells
If I append the generally known fork bomb (:(){ :|: & };: - do not run this!) to the end of root's .bashrc file, could this prevent somebody from accessing an interactive root shell when I don't want them to? Obviously not the best solution and something to do more for curiosity. I just want to know what people think of this.
Edit: I know this is in no way useful. I was just curious.
 
     
     
    