Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
Running any command with sudo in the integrated terminal fails with:
sudo: The "no new privileges" flag is set, which prevents sudo from running as root.
The same command works in an external terminal (e.g. gnome-terminal) on the same machine.
Steps to Reproduce
- Open Cursor on Linux.
- Open a new integrated terminal (user-initiated, not agent).
- Run
sudo ls(or anysudocommand).
Expected Behavior
sudo prompts for password and runs the command.
Operating System
Linux
Version Information
Version: 3.1.15
VSCode Version: 1.105.1
Commit: 3a67af7b780e0bfc8d32aefa96b8ff1cb8817f80
Date: 2026-04-15T01:46:06.515Z
Layout: editor
Build Type: Stable
Release Track: Default
Electron: 39.8.1
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Linux x64 6.5.0-1027-oem
Additional Information
Ubuntu 22.04
Does this stop you from using Cursor
No - Cursor works, but with this issue