Fedora / Linux / Red Hat – Run Google Chrome as root user

Posted: 06/10/2012 in linux
Tags: , ,

If you installed Google Chrome and you can not run it on the root account, receiving messages like the following:

Google Chrome can not be run as root
Please start Google Chrome as a normal user. To run as root, you must specify an alternate –user-data-dir for storage of profile information


[polish version]
Przeglądarki Google Chrome nie możesz uruchamiać jako użytkownik root.
Uruchom aplikację Google Chrome jako zwykły użytkownik. Uruchamianie jako użytkownik root wymaga podania alternatywnego katalogu –user-data-dir do przechowywania danych profilu.


Here is a solution:

  • [optional]
    root@localhost > xhost +

    Turns off acccess control (all remote hosts will have access to X server).
    o turn access control back on type xhost –
  • root@localhost > vim /usr/bin/google-chrome
    Edit in any text editor Google Chrome configuration file and find line
    exec -a “$0″ “$HERE/chrome” “$@”
    and type at the end of line -user-data-dir
    so edited line should look like this:
    exec -a “$0” “$HERE/chrome” “$@” -user-data-dir

Now you should be able to run Google Chrome with root rights. Of course, for safety reasons I would advise careful with too frequent use of applications in this way.

  1. Joseph samuel says:


  2. Joseph samuel says:

    Thanks for your valuable helps………..

    • tony says:

      these steps don’t work in fedora 20 with gc 37.0 64bit. The xhost command has no effect (nag windows still comes up) and in editing /usr/bin/google-chrome makes the program unresponsive to any start.

  3. Senaka says:

    Excellent .Thanks for sharing

  4. mahendran says:

    thanks for this command with help full

  5. Rajesh says:

    Thanks for the information. It works

  6. Shanmu Vel says:

    Great..! It works perfectly…

  7. Julien says:

    Thanks Much Helpful, chrome started working fine.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s