Secure Console
You can limit where you can log in by restricting which terminals you want to use. By default, lots of terminals are active.
This can be resolved by only allowing one terminal. Open the securetty
:
sudo vi /etc/securetty
Change which terminal you want to use and disable.
For example, if you want to only allow tty1
, you have to disable all other terminals using the #
sign.
tty1 #tty2 #tty3 #tty4 # etc ...
Update security
You will also need to secure the /etc/securetty
file to make sure only root can modify it.
sudo chown root:root /etc/securetty sudo chmod 0600 /etc/securetty