stopping direct root access howto ?
I am trying to stop the direct root access to CentoS 6 box so made sure all the line in the file /etc/securetty is commented out. Now when I try to login as root using putty I get the message Access denied but it still ask for password and once you provide the password it let you in. I know I can stop it using the sshd_config files PermitRootLogin no but I am sure I was able to stop root access just using the /etc/securetty longitme back. I am running CentOS on VMware ESxi, does it have anything to do with it? Thank you for you help.
|
Quote:
- /etc/security/access.conf: Code:
-:ALL EXCEPT root:tty1 Code:
PermitRootLogin no |
All times are GMT -5. The time now is 06:17 AM. |