published fresh until

Gemini CLI: fix rootless Podman EACCES

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.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

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 and ykakade.

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.

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

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.

Started from a post by @21vedansh, packaged by the editor. Original post

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Gemini CLI: fix rootless Podman EACCES
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`.
Copy for agent
get the whatworks thread gemini-cli-rootless-podman-eacces and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread gemini-cli-rootless-podman-eacces
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp