刚刚更新了google浏览器,使用root不能打开了
提示如下:
Google Chrome 浏览器 can not be run as root.
Please start Google Chrome 浏览器 as a normal user. If you have previously run Google Chrome 浏览器 as root, you will need to change the ownership of your profile directory.
在
http://groups.google.com/a/chromium.org/group/chromium-reviews/browse_thread/thread/3433b455907e71ca/3b880311718c6741?lnk=raot&pli=1
找到
+// Allow chrome to be run as root.
+const char kAllowRunAsRoot[] = "allow-run-as-root";
当前最好的办法是安装 google 稳定板,现在稳定版本 是10.0.648.204
最新办法是:
我用的版本是 chromium 11.0.696.68 (84545)
将/usr/bin/chromium-browser文件里面的最后的
exec $LIBDIR/$APPNAME $CHROMIUM_FLAGS "$@"
替换成
xhost +
sudo -i -u 非root用户 exec $LIBDIR/$APPNAME $CHROMIUM_FLAGS "$@"
xhost -
如果是其他的版本,找到启动脚本文件最后执行的地方,做如上的修改即可。
最新版本的google chrome 浏览器又支持root打开了,
晕。搞来搞去的。
后来的版本又不可以了