{"version":"2.1.330","anchor":"container-root-may-own-session-dirs-foreign-owned-entries-f","canonical_anchor":"container-root-may-own-session-dirs-foreign-owned-entries-f","heading":"File ownership checks now accept root inside containers","tier":"notice","area":"Files","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.330\/e\/container-root-may-own-session-dirs-foreign-owned-entries-f","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.330","markdown":"### File ownership checks now accept root inside containers\n\nWith CLAUDE_CODE_CONTAINER_ID set, root counts as owner in ownership checks, and other users' or symlinked entries are filtered out\n\n**What**\n\nClaude Code checks who owns the files and folders it keeps for its sessions. A session is one run of Claude Code. These checks now treat a container (an isolated environment that often runs as the administrator account, root) differently when `CLAUDE_CODE_CONTAINER_ID` is set:\n\n- Session entries are now sorted into four groups: belonging to Claude Code, belonging to someone else, missing, or unreadable.\n\n- An entry counts as someone else's if it is a symlink (a shortcut pointing to another location) or is owned by a different user account.\n\n- Root counts as the owner only when `CLAUDE_CODE_CONTAINER_ID` is set.\n\n- Entries belonging to someone else are now dropped from the list Claude Code works with.\n\n- A temporary folder owned by another user, when `CLAUDE_CODE_CONTAINER_ID` is set and Claude Code runs as root, is now logged with the correct user ID and used. Before, the check gave up and reused an out-of-date value.\n\n- A temporary folder with the wrong permissions is now fixed and checked again.\n\n**Why**\n\nIgnoring symlinked entries and entries owned by other users makes it harder for planted files to be picked up as session data. The temporary-folder change fixes a bug that affected Claude Code running as root inside containers.\n\n- Area: Files\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: yes"}