I'm currently doing a project for my school aimed at creating a server in a VM.
One of the requirements of the subject was to install sudo on an emulated Debian Linux, with the following field in the sudoers config file:
Defaults requiretty
The subject line requiring me to set this:
- The TTY mode has to be enabled for security reasons.
I know that tty is a command which prints the filename of a terminal that is currently connected to the standard input. However, what I can't see is how this ensures more security for the server.