Friday, February 21, 2014

Google Chrome can not be run as root in Linux(Centos/Ubuntu)

 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


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.



      
Command : /usr/bin/google-chrome-stable %U

[root@localhost ]# /usr/bin/google-chrome-stable --user-data-dir %U

No comments:

Post a Comment