Got this problem when I was running chrome by root. The program is at /opt/google/chrome/google-chrome.
1, Download the hexedit: # apt-get -y install hexedit
2, # hexedit /opt/google.chrome/chrome
Now you will get in the hexedit.
3,
Press 'tab' key to switch to the ASCII mode.
Then press 'ctrl + s' to find. Input "geteuid" and press enter.
Now you can just input "getppid" to overwrite it.
Press 'ctrl + x' to exit and save.
4, Now you can run /opt/google/chrome/google-chrome by root.
Not convenient to input Chinese.
Got the method from here: http://neverno.me/hello-world/ubuntu-chrome-can-not-be-run-as-root-fix.html
本文提供了一种解决Google Chrome浏览器无法以Root用户身份运行的方法。通过修改Chrome可执行文件中的特定字符串,使得Root用户也能启动Chrome。此方法涉及使用hexedit工具定位并替换关键指令。
215

被折叠的 条评论
为什么被折叠?



