TTY Required error during Linux scanning

On some Linux distributions, it is not possible to use the sudo command without a terminal. This can cause Lansweeper to return a "TTY Required" scanning error on these Linux computers, as Lansweeper needs the sudo command to scan information from the BIOS. To change your Linux machines' configuration so it doesn't require tty for sudo, follow the steps below. Note: be careful when editing system files, as making incorrect changes may make your system unstable.

  1. Start a console and enter "sudo visudo" (without quotes), enter your password when prompted.
  2. Use the arrow keys to scroll through the file and move the cursor to the start of the line "Defaults requiretty".
  3. Press "i" to enter insert mode.
  4. Type "#", the line should now read "#Defaults requiretty". All lines starting with "#" are ignored by the system.
  5. Press Escape to exit insert mode.
  6. Type ":wq" and press Enter to save and exit the editor. To exit the editor without saving, press Escape and then press Ctrl+Z.

Related Articles