Sudo not working

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Hi!

Sudo commands don’t ask me to input password
And fail with

sudo: unable to read password: Input/output error
sudo: a password is required

Thank you!

Steps to Reproduce

Have it try any sudo command on your host.

Operating System

Linux

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.0.77
VSCode Version: 1.99.3
Commit: ba90f2f88e4911312761abab9492c42442117cf0
Date: 2025-11-13T23:10:43.113Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Linux x64 6.8.0-87-generic

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

1 Like

Hey, thanks for the report. This is a known issue with sudo password prompts in the Agent terminal on Linux.

To start, please try the following:

  • Open Cursor Settings with Ctrl+Shift+J
  • Search for “Legacy Terminal”
  • Enable the “Legacy Terminal Tool” option
  • Restart the Agent and try your sudo command again

If that doesn’t help, there’s another workaround: when the Agent asks for interaction, look for the small arrow icon at the top of the action that needs input. Click that arrow to open a full terminal where you can interact directly and enter your sudo password.

Let me know if either of these options works for you.

1 Like

Ok I will give it a try!

Thank you very much for the answer!

Regards,