Chrome Flags Reference

Chrome command line switches and startup flags for automation, headless mode, and debugging.

--disable-setuid-sandbox

What does --disable-setuid-sandbox do?

Disable the setuid sandbox (Linux only).

Usage

CLILaunch Chrome with --disable-setuid-sandbox using CLI

chrome --disable-setuid-sandbox

PuppeteerLaunch Chrome with --disable-setuid-sandbox using Puppeteer

const browser = await puppeteer.launch({
  args: ['--disable-setuid-sandbox']
});

PlaywrightLaunch Chrome with --disable-setuid-sandbox using Playwright

const browser = await chromium.launch({
  args: ['--disable-setuid-sandbox']
});

SeleniumLaunch Chrome with --disable-setuid-sandbox using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--disable-setuid-sandbox')

driver = webdriver.Chrome(options=options)