Linux – It is not possible to Run Google Chrome as root

browsercentos-6google-chromelinux

I am facing one strange problem in my system.
I am using CentOs 6.2 (linux)

being root it is not possible to open Google Chrome browser.
It giving the error like this…

Google-Chrome error

Firefox is working fine in root.

but why chrome is showing the error like this?

Best Answer

I think the error message is self explainatory - chrome stores profile information under /home, and root has no home directory. You may need to run it with the --user-data-dir flag, and specify some location for this.

I'd note though, running a web browser as root is a HUGE security risk.

Related Question