Google Chrome can not be run as root

Source: Internet
Author: User

System Environment: BackTrack 5 r3 GNOME Problem description: When a root user is logged on, the following error is prompted when chrome is opened: 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. use hexedit to edit the chrome file and change geteuid to getppid. The process is as follows: 1. search and install hexedit: # apt-get hexedit2. use hexedit to modify the/opt/google/chrome file. Modify the file according to the method described on the Internet, and prompt that the file is read-only, no matter how chmod is used to modify permissions, the system still prompts read-only. The following method is used: # cp chrome/root/# hexedit/root/chrome to modify chrome in the/root/directory. Open chrome and press the Tab key, press Ctrl + s to search for geteuid. After finding the ID, enter the getppid directly. The geteuid will be overwritten, and then press Ctrl + x to save it. Ps: Note: if the path is different, use the dpkg-c installation package to check the installation path. 3. Copy chrome under the/root directory back to/opt/google/chrome/to overwrite the original chrome file. Open chome and you can use it now.

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.