Hi everybody,
I’m currently trying to run Maven inside Cursor’s sandbox, but I’m seeing a surprising filesystem permission issue that I don’t fully understand.
Setup
- Host OS: macOS
- Cursor is running inside an Ubuntu-based Dev Container
- Sandbox is enabled
- The workspace is a minimal test project
- The project only contains the Dev Container definition
.cursorignoreis empty.gitignoreis empty- The write operation is supposed to happen inside the workspace
My actual goal is simple: I want Maven to be able to run inside the sandbox and write its build output inside the workspace.
Problem
Inside the sandbox, writing file contents appears to fail with Permission denied. I first noticed this when trying to run Maven, but I reduced it to a much simpler test using shell commands.
Minimal reproduction
In a clean test workspace, I manually created a new directory foo. Then I asked Cursor to write the content test into a new file in the directory using terminal commands inside the sandbox.
The command Cursor tried to run was:
echo "test" > "foo/test-file.md"
--: line 1: foo/test-file.md: Permission denied
This is confusing to me because:
- The write target is inside the workspace.
- The file was created after sandbox initialization, so I would not expect it to be blocked as an existing ignored/blackholed file.
- The same kind of issue originally appeared with Maven writing to
target/. .cursorignoreand.gitignoreare empty in this test project.- I would expect sandboxed commands to be allowed to write inside the workspace.
Expected behavior
When the sandbox is enabled and the command writes to a path inside the workspace, I would expect this to work, at least when the workspace is supposed to be writable.
Actual behavior
The command fails with:
Permission denied
The file may be created, but it remains empty and no content is written.
Questions
Could this be caused by a Cursor setting or sandbox policy that I might have configured incorrectly?
I’m trying to understand whether this is expected behavior, a configuration issue on my side, or possibly a bug in the sandbox behavior inside Dev Containers.
Thanks in advance for any clarification.
Cursor Version Info:
Version: 3.9.16 (Universal)
VS Code Extension API: 1.105.1
Commit: 042b3c1a4c53f2c3808067f519fbfc67b72cad80
Date: 2026-06-27T06:41:01.941Z
Layout: editor
Build Type: Stable
Release Track: Default
Electron: 40.10.3
Chromium: 144.0.7559.236
Node.js: 24.15.0
V8: 14.4.258.32-electron.0
xterm.js: 6.1.0-beta.256
OS: Darwin arm64 25.5.0