Secure Console

Posted on Sunday March 13, 2016 / by Eric Potvin

You can limit where you can login by restricting which terminals you want to use. By default, lots of terminals are active. This can be resovled 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