centos 使用 root运行chrome

第一种方法:

 

[root@h3idan /]# vim /opt/google/chrome/google-chrome

编辑最后一行代码:

exec -a "$0" "$HERE/chrome" "$@" --user-data-dir

然后保存。

 

第二种方法:

[root@h3idan /]# vim /opt/google/chrome/chrome

查找到 geteuid 改为 getppid。
然后保存!


具体是怎么回事不知道,但是能用就行了!

posted on 2012-08-27 18:12  h3idan  阅读(684)  评论(0编辑  收藏  举报

导航