I'm trying to disable root login via the serial console in RHEL 6. Based on this link from redhat (https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/4/html/Security_Guide/s2-wstation-privileges-noroot.html), it says to basically clear out the
/etc/securetty file. So, I have done that, and it does disable root login. The problem is that it disables ALL login. I still need to access it with a non-root login.
So, is there a way to disable root login via console, yet still be able to login with other users. For example, with ssh, you can modify the
"PermitRootLogin yes/no" parameter to do this.