签到成功

知道了

CNDBA社区CNDBA社区

Linux 7.3 root 用户无法启动chrome 浏览器 解决方法

2017-03-31 17:00 6465 0 原创 Linux
作者: dave


Redhat 7.3 上安装了chrome后用root 用户启动提示:Google Chrome can not be run as root。http://www.cndba.cn/dave/article/1832http://www.cndba.cn/dave/article/1832http://www.cndba.cn/dave/article/1832


http://www.cndba.cn/dave/article/1832

测试环境习惯使用root用户操作。 所以这里直接修改chrome的文件。


1. 安装16进制编辑器hexedit:
http://www.cndba.cn/dave/article/1832http://www.cndba.cn/dave/article/1832

[root@Dave Downloads]# yum install hexedit
Loaded plugins: product-id, search-disabled-repos, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
google-chrome                                                                                 |  951 B  00:00:00     
google-chrome/primary                                                                         | 2.0 kB  00:00:00     
google-chrome                                                                                                    3/3
Resolving Dependencies
--> Running transaction check
---> Package hexedit.x86_64 0:1.2.13-5.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=====================================================================================================================
 Package                    Arch                      Version                          Repository               Size
=====================================================================================================================
Installing:
 hexedit                    x86_64                    1.2.13-5.el7                     dave                     39 k

Transaction Summary
=====================================================================================================================
Install  1 Package

Total download size: 39 k
Installed size: 69 k
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
** Found 3 pre-existing rpmdb problem(s), 'yum check' output follows:
PackageKit-1.0.7-6.el7.x86_64 has missing requires of PackageKit-backend
anaconda-core-21.48.22.93-1.el7.x86_64 has missing requires of yum-utils >= ('0', '1.1.11', '3')
rhn-check-2.0.2-8.el7.noarch has missing requires of yum-rhn-plugin >= ('0', '1.6.4', '1')
  Installing : hexedit-1.2.13-5.el7.x86_64                                                                       1/1 
  Verifying  : hexedit-1.2.13-5.el7.x86_64                                                                       1/1 

Installed:
  hexedit.x86_64 0:1.2.13-5.el7                                                                                      

Complete!
[root@Dave Downloads]#

http://www.cndba.cn/dave/article/1832

2.编辑/opt/google/chrome/chrome文件

[root@Dave Downloads]# hexedit /opt/google/chrome/chrome

http://www.cndba.cn/dave/article/1832

按Tab键,再按Ctrl+s搜索geteuid,找到后,直接输入getppid,将会覆盖掉geteuid,最后按Ctrl+x保存。


http://www.cndba.cn/dave/article/1832

3. 用root用户即可启动chrome 浏览器


http://www.cndba.cn/dave/article/1832

版权声明:本文为博主原创文章,未经博主允许不得转载。

linux chrome

用户评论
* 以下用户言论只代表其个人观点,不代表CNDBA社区的观点或立场
dave

dave

关注

人的一生应该是这样度过的:当他回首往事的时候,他不会因为虚度年华而悔恨,也不会因为碌碌无为而羞耻;这样,在临死的时候,他就能够说:“我的整个生命和全部精力,都已经献给世界上最壮丽的事业....."

  • 2261
    原创
  • 3
    翻译
  • 578
    转载
  • 191
    评论
  • 访问:7971711次
  • 积分:4346
  • 等级:核心会员
  • 排名:第1名
精华文章
    最新问题
    查看更多+
    热门文章
      热门用户
      推荐用户
        Copyright © 2016 All Rights Reserved. Powered by CNDBA · 皖ICP备2022006297号-1·

        QQ交流群

        注册联系QQ