How to resolve Google Chrome can not be run as root. (Ubuntu, Fedora, CentOS)

Overview

First and foremost, you should never run a web browser as root, in fact you should not run any software as root when you don’t have to. If you still wish to run chrome as a root nobody can stop you. :D
root 300x227 How to resolve Google Chrome can not be run as root. (Ubuntu, Fedora, CentOS)

How to run Google Chrome as root.

Right click on the launch icon and select properties.  Append the following to the command in the launcher --user-data-dir

This is what it will look like

/opt/google/chrome/google-chrome %U

just change it to be

/opt/google/chrome/google-chrome --user-data-dir %U

If you can’t find the launcher then you have to add it to panel or to your desktop. Select Applications-->Internet-->Google Chrome, right click on it and select Add this launcher to panel or Add this launcher to Desktop. Once you find the launcher icons, follow the steps above to run Chrome as a root user.

Cheers!