How to Run Google Chrome as Root on Backtrack Linux

I ran into an annoying problem today. I normally use Firefox for all my pentesting needs and I use google chrome as my default browser for everything else. I was setting up a new Backtrack image for myself and I installed the .deb archive for google chrome which is available on the google web site. When I went to start it up I received the following error message.


Below I will outline the simple steps to overcome this error:

1. Close out any instances of google chrome.

2. Open a terminal and change into the google chrome directory


  1. root@bt:~# cd /opt/google/chrome/

3. Next we are going to use a Hex editor to modify the Chrome code. We are basically going to alter the section that checks to see what user is running.


  1. root@bt:/opt/google/chrome# hexedit chrome

4. Now you will be presented with the following screen:



5. The first thing we need to do is press the tab key which will switch us into ASCII mode. You can see if this worked because your cursor will move over to the right hand column of the hex editor.

6. Next we will hit CTRL-s in order to open up the search function. The string we are looking for is the “geteuid” command.


7. Once we locate the string what we want to do is alter it from “geteuid” to “geteppd”


8. Once the ASCII string is altered we can press CTRL-x in order to save the file. Be sure to reply Yes when asked if you want to save the file or not.


9. Once the file is saved we can open Google Chrome and it should run normally.


Metasploit: The Penetration Tester’s Guide (Paperback)

List Price: $49.95 USD
New From: $25.40 USD In Stock
Used from: $17.00 USD In Stock

Alfa 1000mW 1W 802.11b/g USB Wireless WiFi Network Adapter With Original Alfa Screw-On Swivel 9dBi Rubber Antenna (Electronics)

List Price: $89.99 USD
New From: $32.99 USD In Stock
Used from: $27.00 USD In Stock