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。
然后保存!
具体是怎么回事不知道,但是能用就行了!
浙公网安备 33010602011771号