---
title: "Fix Linux TTY required scanning error | Lansweeper Classic"
slug: "linux-scanning-error-tty-required"
description: "Fix the 'TTY required' Linux scanning error in Lansweeper Classic, which occurs when sudo is configured to require a tty on the target computer."
updated: 2026-06-17T09:46:41Z
published: 2026-06-17T09:46:41Z
canonical: "docs.lansweeper.com/linux-scanning-error-tty-required"
stale: true
---

> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lansweeper.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Linux scanning error TTY required

A "TTY Required" scanning error can occur if you are running a Linux distribution where `sudo` is configured to require `tty` by default.

To solve the error, disable the `tty` requirement to ensure Lansweeper has `sudo` access and fulfills the [requirements for scanning Linux computers](/classic/docs/linux-and-unix-agentless-scanning-requirements).

Take caution when editing system files as incorrect changes might make your system unstable.

To disable the `tty` requirement:

1. Open the Linux terminal. Enter `sudo visudo` then your password, when prompted.
2. Use your keyboard's arrow keys and move your cursor to the start of the `Defaults requiretty` line.
3. Select the **I**key to use insert mode.
4. Enter `#`. The line should now be `#Defaults requiretty`.
5. Select the **Esc** key to exit insert mode.
6. Enter `:wq` and select the **Enter** key to save and exit the editor.

[Run a scan on your Linux computer](/classic/docs/how-to-scan-a-linux-or-unix-computer) to confirm the error is resolved.
