# Sudo not working

**URL:** <https://forum.cursor.com/t/sudo-not-working/143142>\
**Category:** Bug Reports\
**Created:** [November 19, 2025, 12:27am UTC](https://forum.cursor.com/t/sudo-not-working/143142 "2025-11-19T00:27:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yolo\_Tan](https://avatars.discourse-cdn.com/v4/letter/y/f475e1/32.png) [@Yolo\_Tan](https://forum.cursor.com/u/Yolo_Tan)\
**Post date:** [November 19, 2025, 12:27am UTC](https://forum.cursor.com/t/sudo-not-working/143142/1 "2025-11-19T00:27:41Z")

</div>

### 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

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [November 19, 2025, 4:21am UTC](https://forum.cursor.com/t/sudo-not-working/143142/2 "2025-11-19T04:21:21Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Yolo\_Tan](https://avatars.discourse-cdn.com/v4/letter/y/f475e1/32.png) [@Yolo\_Tan](https://forum.cursor.com/u/Yolo_Tan)\
**Post date:** [November 19, 2025, 12:49pm UTC](https://forum.cursor.com/t/sudo-not-working/143142/3 "2025-11-19T12:49:06Z")

</div>

Ok I will give it a try!

Thank you very much for the answer!

Regards,

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [December 11, 2025, 12:49pm UTC](https://forum.cursor.com/t/sudo-not-working/143142/4 "2025-12-11T12:49:28Z")

</div>

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.
