Ubuntu Google Chrome can not be run as root

Source: Internet
Author: User
Google Chrome can not be run as root.
Please start Google Chrome as a normal user. To run
As root, you must specify an alternate-user-data-
Dir for storage of profile information.
Chrome is not allowed to run under root. Because VPs is not your computer, it is not suitable for changing users. I have tried many ways to find a network,
For example, failed to modify flags and so on, and finally found a good method, share it here.
First install the hexadecimal Editor
# Apt-get-y install hexedit
Then use the editor to edit chrome
# Hexedit/opt/Google/Chrome/chrome
Note: If the path is different, use the dpkg-C installation package to check the installation path.
After entering the editor, the cursor is on the left. First, press the tab key to switch to the ASCII code mode on the right,
Press Ctrl + S to open the search function and enter geteuid to search. When the cursor stops at the beginning,
Replace the geteuid with the getppid and the modification is complete. Press Ctrl + X to save and exit.
Open chrome again to run normally.

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.