I was wondering what is the best way to disable the root account on centOS 5.7 32bit?
usermod -L root # this is what I would prefer but will it work on root account??
echo > /etc/securetty # This would work but if I wanted to reenable it I would have to recreate this file.
Is there any other recommend way? I disabled it via sshd_config as well.
If you ask why I want to completely disable root its because I don't need it with sudo and even though I disabled the login via sshd_config I can still go root with
and it still allows me to login.