Running Google Chrome as root Fedora 15 RHEL 6 CentOS 6 Ubuntu 11 04 Linux
As Google Chrome is available for Linux but because of some purposes they have disabled access of Google Chrome via Root user.
As I am working with a root user and also expecting that lots of users are working as a root and they wants to run google chrome as a root then this post will helps them.
There are some users who does not like to work as a root and they don�t recommend to work as a root, So i will request them to ignore this post.
This howto is tested on Testing Environment, I request you to follow if you are sure what its going to do, If something or anything anwhere goes wrong you�ll be the only responsible for the same. DO IT AT YOUR OWN RISK.
Now First Let�s look at the Error which you are getting when you try to run Google Chrome as a root. If you are getting error exact like below screenshot then follow this post it will helps you to enable Google Chrome as a root.
Please perform following steps to Run Google Chrome as root.
0) Of Course, Google Chrome Must be installed.
1) You need to be root to perform this steps.
2) We require following package must be installed.
Fedora / Red Hat Users execute this command as root :- [root@tejas-barot-linux-ahmedabad ~]# yum -y install alacarte
Ubuntu Users execute this command as root :- [root@tejas-barot-linux-ahmedabad ~]# apt-get install alacarte
3) Once above package is installed Execute Following command as a root on your terminal
[root@tejas-barot-linux-ahmedabad ~]# alacarte
Once alacarte Window is opened Click on Applications and from Right Panel SelectGoogle Chrome. Look at Below Screenshot.
4) On Google Chrome Menu click on Properties, You will able to see exact details like following screenshot.
5) Move to Command Text Box of Google Chrome Menu Properties.
Change this line from /opt/google/chrome/google-chrome %U to /opt/google/chrome/google-chrome --user-data-dir %U. Look at screenshot below.
====> UPDATED : If This GUI Steps doesn�t work than do following Steps it will work. Thanks manish for your comment.
# vi /opt/google/chrome/google-chrome
and Find line exec -a �$0? �$HERE/chrome� �$@� and change it to following
exec -a �$0? �$HERE/chrome� �$@� �user-data-dir ( Two Hyphens at start of options )
Save and Close File
6) Now Close all windows, Don�t click on Revert.
7) Now Click on Applications -> Internet -> Google Chrome
8) That�s it. It will open Google Chrome as root.
9) If you want to run Google Chrome as root from Terminal then execute following command on Terminal.
google-chrome �user-data-dir
Hope guys this helps you. Waiting for your comments and Feedback.