Skip to content

Portable mode on Linux complains about chrome-sandbox owner and mode. It requires sudo commands to set right #237948

Closed
microsoft/vscode-docs
#7942
@TryerGit

Description

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.96.3
  • OS Version: Linux Ubuntu 24.04.1 LTS

Steps to Reproduce:

  1. Download Portable VSCode from https://code.visualstudio.com/download (file code-stable...197.tar.gz)
  2. Extract to any folder, say, /home/VSCode so that code executable is such that it is at /home/VSCode/code (by default bin, code, etc., are two levels deeper into the extracted contents)
  3. Open user terminal in /home/VSCode
  4. Run "./code"

The following error occurs:
FATAL: setuid_sandbox_host.cc(163)...I am aborting now. You need to make sure that /home/VSCode/chrome-sandbox is owned by root and has mode 4755

Then, I have to issue the following commands

sudo chown root:root chrome-sandbox
sudo chmod 4755 chrome-sandbox

Only after this step does running "./code" as expected opens up and works.

I request that this information on how to set the correct permissions to chrome-sandbox be provided upfront on the page: https://code.visualstudio.com/docs/editor/portable

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions