title: Selenium - Running Firefox as root in a regular user's session is not supported
body: <p>I am very new to Selenium and all of the sudden for no reason an error is stopping me from running ANY Selenium tests.</p>
  
  <p>This is the error I am getting when I run my Python script:</p>
  
  <pre><code>2018-05-14 12:07:52,766 [INFO ]  Getting Selenium setup here.
  Traceback (most recent call last):
    File "test.py", line 308, in &lt;module&gt;
      webcrawler.crawl()
    File "test.py", line 177, in crawl
      self.web_crawl.setup()
    File "/test/src/webcrawlers/utils/webcrawl_lib.py", line 83, in setup
      self.browser = webdriver.Firefox(firefox_profile=profile)
    File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/firefox/webdriver.py", line 162, in __init__
      keep_alive=True)
    File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 154, in __init__
      self.start_session(desired_capabilities, browser_profile)
    File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 243, in start_session
      response = self.execute(Command.NEW_SESSION, parameters)
    File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 312, in execute
      self.error_handler.check_response(response)
    File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
      raise exception_class(message, screen, stacktrace)
  selenium.common.exceptions.WebDriverException: Message: Process unexpectedly closed with status 1
  </code></pre>
  
  <p>Now I can usually debug these issues. However, the geckodriver.log is not giving me much to work with:</p>
  
  <pre><code>1526299672891   geckodriver     INFO    geckodriver 0.20.1
  1526299672895   geckodriver     INFO    Listening on 127.0.0.1:48641
  1526299673899   mozrunner::runner       INFO    Running command: "/usr/bin/firefox" "-marionette" "-profile" "/tmp/rust_mozprofile.YNIc2l05QiIr"
  Running Firefox as root in a regular user's session is not supported.  ($HOME is /home/test which is owned by test.)
  </code></pre>
  
  <p>Environment:</p>
  
  <ul>
  <li>Geckodriver: 0.20.1</li>
  <li>Selenium: 3.12.0</li>
  <li>Python: 2.7. And I tried using 3 as well</li>
  <li>Firefox: 60.0</li>
  </ul>
  
  <p>I even tried switching out to using Chrome, and the setup would just hang and give a unique error as well.</p>
  
  <p>A side note is that this is on Amazon AWS, and I am not the administrator on the account. Maybe something was changed on that end.</p>