{"version":"2.1.329","anchor":"cloud-sessions-set-the-shells-previous-folder-to-a-root-own","canonical_anchor":"cloud-sessions-set-the-shells-previous-folder-to-a-root-own","heading":"Cloud sessions running as root point cd - at a safe empty folder","tier":"notice","area":"Sessions","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.329\/e\/cloud-sessions-set-the-shells-previous-folder-to-a-root-own","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.329","markdown":"### Cloud sessions running as root point `cd -` at a safe empty folder\n\nOn Linux cloud sessions running as root, the shell's previous folder is set to a root-owned empty folder or to \/\n\n**What**\n\nIn a shell, `cd -` takes you back to the previous folder, which the shell remembers in a value called `OLDPWD`. On Linux remote sessions that run as root, the all-powerful system user, Claude Code now sets that value up front:\n\n- With a remote switch on, it points at `\/var\/lib\/claude-code-previous\/empty\/no-previous-folder`, a folder created and owned by root.\n\n- With the switch off, it points at `\/`.\n\nSandboxed commands, ones run inside a walled-off area, are also refused if the session is moving folders while it is still setting up.\n\n**Why**\n\nThis is a safety change for remote sessions. It changes where `cd -` takes you at the start.\n\n- Area: Sessions\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}