ubuntu google chorme can not be run as root

来源:互联网 发布:mac平台chm制作软件 编辑:程序博客网 时间:2024/05/17 05:53

  linux 无法用root用户启动chorme,解决方法如下

  1.首先需要安装十六进制编辑器

  apt-get -y install hexedit  
  2.然后使用编辑器编辑Chrome

     (使用 dpkg -c 安装包名可查看安装目录)

  hexedit /opt/google/chrome/chrome 

  3.进入到编辑器后,光标在左侧,首先按TAB键切换到右侧的ASCII码模式,接着按Ctrl+S打开搜索功能,输入geteuid查找,当光标停到首字母的地方后,直接输入getppid就能修改了,最后按Ctrl+X保存退出。

   ps:进行第三步时需关闭提示“google chorme can not be run as root”的窗口,否则修改时提示read-only,导致修改失败

 4.重新启动chorme

0 0