How to run chrome as root user in Ubuntu
By default google-chrome will run as under the normal user. You would get following error if you run chrome as root user

To run chrome as root user follow these steps
Open /opt/google/chrome folder
open google-chrome file

Append last line of file with '--user-data-dir $HOME'
Actual line
Appended line
Save and close the file

Now run chrome as root user also.

Google Chrome can not be run as root. Please start Google Chrome as a normal user. run as root, you must specify an alternate
--user-data-dir for storage of profile information.
To run chrome as root user follow these steps
Open /opt/google/chrome folder
open google-chrome file
Append last line of file with '--user-data-dir $HOME'
exec -a "$0" "$HERE/chrome" "$@"
exec -a "$0" "$HERE/chrome" "$@" --user-data-dir $HOME
Now run chrome as root user also.
No comments:
Post a Comment