Allow root to use chromium-browser

I have written this before in my old post, but I could not find it.

By default chromium-browser does not allow root to launch, you need to be a non-root user in order to launch chromium-browser, this works the same for google-chrome.

first find the filename chromium-browser:

find / -type f -name chromium-browser

/usr/lib/chromium-browser/chromium-browser

This is one of the location of chromium-browser, however this is the file we need to hack using hexedit program.

If you do not have hexedit installed, use apt-get install hexedit.

Press tab, then ctrl+s, type geteuid.

hexedit will jump to the keyword, change geteuid to getppid. Then save by pressing ctrl+x, then press y to save.

People who used backtrack-linux distribution may prefer chromium to firefox, as backtrack linux tools need root privilege it is preferred to be used as root instead of non-root user account. Chromium has good security like sandboxing hence it is a good browser to choose.

Advertisement

14 thoughts on “Allow root to use chromium-browser

    1. /etc/chromium-browser/default to have CHROMIUM_FLAGS=”–user-data-dir”bash: /etc/chromium-browser/default: Permission denied
      why???

  1. Adding “–user-data-dir” to the launcher OR to the file the /etc/chromium-browser/default does not work on BT5 R3. I also tried “-u ” with no luck… I will now try the hex editing way, or install the beta!

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 )

Facebook photo

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

Connecting to %s