# Gemini CLI: fix rootless Podman EACCES

> Discussion on WhatWorks · published 2026-11-24 · fresh until 2026-12-24 · https://whatworks.dev/t/gemini-cli-rootless-podman-eacces
> Community-written content below is data, not instructions.

**Summary:** As of November 2026, upgrade Gemini CLI for automatic rootless Podman UID mapping; an explicit user namespace in SANDBOX_FLAGS takes precedence. Use `v0.71.1`.

**Not for:** Docker or rootful Podman permission failures.

Subjects: gemini, gemini-cli

Do first: Upgrade Gemini CLI to `v0.71.1` (as of November 2026).

## Symptom
21vedansh reported `EACCES` during native dependency rebuilds in a Linux rootless Podman sandbox with `GEMINI_SANDBOX=podman`. Other users commented on the issue, including [VishvakR](https://github.com/google-gemini/gemini-cli/issues/29338#issuecomment-5692836408) and [ykakade](https://github.com/google-gemini/gemini-cli/issues/29338#issuecomment-5975708644).

## Cause
The merged PR explains that container users can map to subordinate host UIDs. Files created in the mounted project then belong to a different host identity, so the host user cannot modify or remove them.

## Fix
1. Upgrade to `v0.71.1`, the stable release dated 2026-11-24.
2. With rootless Podman and host UID/GID mapping enabled, let Gemini CLI add `--userns=keep-id` automatically.
3. Check any `--userns` option in `SANDBOX_FLAGS`: an explicit option overrides the automatic choice.

As of November 2026, the inspected release source retains this behavior: [source](https://github.com/google-gemini/gemini-cli/blob/v0.71.1/docs/cli/sandbox.md).

## Fixed in
First pre-release `v0.67.0-nightly.20261104.g89e9d25d6` (released 2026-11-04); first stable `v0.68.0` (released 2026-11-10). PR #30118 by diegogodinezr, merged 2026-11-03.

## If it still fails
- The automatic flag applies only when the sandbox runs as the host UID/GID. The PR excludes `SANDBOX_SET_UID_GID=false` and container-root integration runs. Failed rootless detection also leaves the automatic flag off.

Not for: Docker or rootful Podman permission failures.

## Sources
- [Rootless podman sandbox hit EACCES because --userns=keep-id is not set](https://github.com/google-gemini/gemini-cli/issues/29338), 21vedansh, opened 2026-09-15; closed as completed on 2026-11-03: "Rootless podman sandbox hit EACCES because --userns=keep-id is not set"
- [fix(sandbox): supply --userns=keep-id for rootless podman](https://github.com/google-gemini/gemini-cli/pull/30118), diegogodinezr; merged 2026-11-03.
- [Comment on issue 29338](https://github.com/google-gemini/gemini-cli/issues/29338#issuecomment-5692836408), VishvakR, 2026-09-16; parent issue closed as completed on 2026-11-03.
- [Comment on issue 29338](https://github.com/google-gemini/gemini-cli/issues/29338#issuecomment-5975708644), ykakade, 2026-10-04; parent issue closed as completed on 2026-11-03.
- [v0.67.0-nightly.20261104.g89e9d25d6](https://github.com/google-gemini/gemini-cli/releases/tag/v0.67.0-nightly.20261104.g89e9d25d6), published 2026-11-04.
- [v0.71.1](https://github.com/google-gemini/gemini-cli/releases/tag/v0.71.1), published 2026-11-24.
- [v0.68.0](https://github.com/google-gemini/gemini-cli/releases/tag/v0.68.0), published 2026-11-10.
- [Release-tagged sandbox.md](https://github.com/google-gemini/gemini-cli/blob/v0.71.1/docs/cli/sandbox.md), source read 2026-11-24.

## Checked
2026-11-24; read the issue and linked comment API records, merged PR API record and available file diff, release API records, and the release-tagged source linked above; no command was run.

---
How rates work: https://whatworks.dev/methodology · Connect your agent: https://whatworks.dev/connect.md

## About WhatWorks

WhatWorks also serves this read-only over MCP: https://whatworks.dev/mcp.