I am trying to alias commands such as shutdown, reboot, etc. I am aware that this is not a fool proof way to block access, however this is just to prevent accidental execution.
I have looked at superuser.com/questions/244342 and all the links given within it.
To alias something like sudo /sbin/shutdown I would first have to alias sudo individually and then /sbin/shutdown to echo 'Not allowed'.
However this doesn't seem to work as sudo obviously executes it at root. So, aliasing these in the .bashrc of the user is pointless. How do I go about solving my problem? I do not want to modify any system attributes such as the .bashrc of root user, etc.