title: Chromium webdriver error when running as root
body: <p>On Ubuntu16, Selenium fails when running from a Python/Celery task or from python with sudo. Running script manually runs without problem.</p>
  
  <p>Sample error:</p>
  
  <pre><code>$ sudo /var/www/my_proj/env/bin/python
  Python 3.5.2 (default, Nov 17 2016, 17:05:23)
  [GCC 5.4.0 20160609] on linux
  Type "help", "copyright", "credits" or "license" for more information.
  &gt;&gt;&gt; from selenium import webdriver
  &gt;&gt;&gt; driver = webdriver.Chrome('/usr/lib/chromium-browser/chromedriver')
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
    File "/var/www/my_proj/env/lib/python3.5/site-packages/selenium/webdriver/chrome/webdriver.py", line 75, in __init__
      desired_capabilities=desired_capabilities)
    File "/var/www/my_proj/env/lib/python3.5/site-packages/selenium/webdriver/remote/webdriver.py", line 154, in __init__
      self.start_session(desired_capabilities, browser_profile)
    File "/var/www/my_proj/env/lib/python3.5/site-packages/selenium/webdriver/remote/webdriver.py", line 243, in start_session
      response = self.execute(Command.NEW_SESSION, parameters)
    File "/var/www/my_proj/env/lib/python3.5/site-packages/selenium/webdriver/remote/webdriver.py", line 312, in execute
      self.error_handler.check_response(response)
    File "/var/www/my_proj/env/lib/python3.5/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
      raise exception_class(message, screen, stacktrace)
  selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally
    (Driver info: chromedriver=2.35 (0),platform=Linux 4.4.0-116-generic x86_64)
  
  &gt;&gt;&gt;
  </code></pre>
  
  <p>Here is how it runs perfectly without sudo:</p>
  
  <pre><code>$ /var/www/my_proj/env/bin/python
  Python 3.5.2 (default, Nov 17 2016, 17:05:23)
  [GCC 5.4.0 20160609] on linux
  Type "help", "copyright", "credits" or "license" for more information.
  &gt;&gt;&gt; from selenium import webdriver
  &gt;&gt;&gt; driver = webdriver.Chrome('/usr/lib/chromium-browser/chromedriver')
  &gt;&gt;&gt;
  </code></pre>
  
  <p>Chromium/Xvfb were installed as:</p>
  
  <pre><code>sudo apt install xvfb -y
  sudo apt-get install chromium-chromedriver -y
  </code></pre>