Google Chrome can not be run as root

This post is from 2017. Some details may be outdated.

I was running some integration tests in a Ubuntu Virtual Machine when I get this error:

Google Chrome can not be run as root. 

Please start Google Chrome as normal user. If you need to run for development, rerun with the --no-sandbox flag.

To resolve this problem I edit the start configuration file.

$ vim $(which google-chrome)

I add the “–no-sandbox” parameter in the “exec” command (starts with two dashes).

Then I save the file and rerun the integration tests.

Jesús Amieiro

Jesús Amieiro

Telecom engineer and IT craftsman at WordPress.com. Galician translator of WordPress and other free software. More about me →

Get new posts by email

One email when I publish something new. Unsubscribe anytime. Privacy.

Keep reading

One response to “Google Chrome can not be run as root”

  1. […] mi caso traté de hacerlo con Windows 10 y Google Chrome. Ambos son los principales sistemas usados en el escritorio (agosto del […]