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