Skip to content

Codex IPC socket directory /tmp/codex-ipc is not per-user, blocking other users on shared hosts (EACCES) #26761

Closed as duplicate

Description

@BeningShum

What version of the IDE extension are you using?

openai.chatgpt 26.5602.40724 (VSCode extension, Linux x64) VSCode running through vscode-server on a shared Linux login node (HPC cluster, multi-user environment).

What subscription do you have?

3rd party

Which IDE are you using?

VS Code

What platform is your computer?

Linux 6.1.0-48-amd64 x86_64 unknown

What issue are you seeing?

The Codex extension panel fails to load. The extension host logs the following error on startup:

[IpcRouterManager] Server error
  errorCode=EACCES
  errorMessage="listen EACCES: permission denied /tmp/codex-ipc/ipc-1021.sock"
  errorName=Error
  errorStack=
    Error: listen EACCES: permission denied /tmp/codex-ipc/ipc-1021.sock
      at Server.setupListenHandle [as _listen2] (node:net:1986:21)
      at listenInCluster (node:net:2065:12)
      at Server.listen (node:net:2187:5)
      at cg.startRouterIfNeeded (.../out/extension.js:480:16899)
      at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
      at async pl.connect (.../out/extension.js:480:18911)

Inspecting /tmp/codex-ipc/ shows the directory is owned by a different user who used Codex on the same shared host earlier:

$ ls -la /tmp/codex-ipc/
drwxr-xr-x  2 otheruser otheruser   60 Jun  6 13:02 .
drwxrwxrwt 70 root      root      1560 Jun  6 16:51 ..
srwxr-xr-x  1 otheruser otheruser    0 Jun  6 13:02 ipc-1046.sock

My UID cannot write into a directory owned by otheruser (mode 0755), so net.Server.listen() on /tmp/codex-ipc/ipc-.sock fails with EACCES. The IPC router never starts and the extension panel cannot connect.

What steps can reproduce the bug?

  1. On a shared Linux host, have User A open VSCode (with vscode-server) and use the Codex extension. This creates /tmp/codex-ipc/ owned by User A with mode 0755, and a socket file ipc-<A_UID>.sock inside it.
  2. User A disconnects, but the directory remains in /tmp (it is not cleaned up on exit).
  3. User B connects to the same host with their own vscode-server session and opens the Codex extension.
    The extension tries to create /tmp/codex-ipc/ipc-<B_UID>.sock and fails with EACCES.

The socket filename is namespaced by UID (ipc-${uid}.sock), but the parent directory (codex-ipc) is not. Whichever user creates it first owns it, and mkdirSync does not adjust permissions or fall back when the existing directory is unwritable. So on any multi-user host where os.tmpdir() resolves to a shared /tmp, only one user at a time can use the extension until the directory is manually removed.

What is the expected behavior?

No response

Additional information

No response

Activity

  1. added
    extension
    on Jun 6, 2026
  2. added
    bug
    app-server
    on Jun 6, 2026
  3. github-actions commented on Jun 6, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  4. etraut-openai commented on Oct 13, 2026

    @etraut-openai
    Contributor

    (response from codex)

    Thanks for the concrete socket path and extension version. Closing as a duplicate of #17765, which tracks non-user-scoped /tmp/codex-ipc ownership blocking other users on shared Linux hosts. Your prerelease reproduction confirms the same failure path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    app-serverbugextension

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions