Solution to failure to run Google Chrome as the root user

Source: Internet
Author: User

After chrome is used in UBUNTU, when chrome is opened, the error "Google Chrome cannot be run as the ROOT user" cannot be logged on as the ROOT user.
Then I found some methods on the Internet to summarize them:
In fact, it is very simple, just two commands.

Xhost +
Sudo-I-u evan dengm/opt/google/chrome
Note: The "evan" of the second command is the user of my machine. It is best to use the user existing on my machine, not the ROOT user.
You can run it.
If you are in trouble, you can write the command as a SHELL for execution. I will directly write the two commands into a *. sh file and click "run ".

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.