Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I run Google Chrome as root? [closed]

Tags:

I have installed Google Chrome in Ubuntu 10.10. When I try to use in normal user, it is working fine.

Now if I want to use as a root it gives the following error:

Google Chrome does not run as root

Also when I tried the following command in terminal, it opens Google Chrome:

google-chrome --user-data-dir 

I need a permanent solution for this. Can anybody give me idea about this?

like image 333
Rashmi Avatar asked Sep 04 '12 06:09

Rashmi


People also ask

How do I install Chrome without sandbox?

To do this, launch Chrome and click menu > Settings. Select “Privacy and Security” on the left, and then click “Privacy Sandbox” under Privacy and Security. Disable the “Privacy Sandbox” toggle to opt out of the Privacy Sandbox (also known as FLoC).

How do I run Chrome on Linux?

Overview of stepsDownload the Chrome Browser package file. Use your preferred editor to create JSON configuration files with your corporate policies. Set up Chrome apps and extensions. Push Chrome Browser and the configuration files to your users' Linux computers using your preferred deployment tool or script.


1 Answers

Run from terminal

# google-chrome --no-sandbox --user-data-dir 

or

Open the file opt/google/chrome/google-chrome and replace

exec -a "$0" "$HERE/chrome" "$@"

to

exec -a "$0" "$HERE/chrome" "$@" --user-data-dir --no-sandbox

It's working for chrome version 49 in CentOS 6. Chrome will give warning also.

like image 114
Nagaraj GK Avatar answered Nov 05 '22 10:11

Nagaraj GK