Thursday, October 29, 2009

Disabling console login for a linux box

Part of the linux hardening strategy is to disable the login from the console, if you are paranoid enough you would like to disable the root login from the console.

This is accomplished though the use of PAM.

1) Open the /etc/pam.d/login
And comment the first line and add this line after it:





2) Add this line to the file /etc/security/access.conf







And finially, when i try to login from the tty2 this is that happens:

0 comentarios: