Redhat 7.3 上安装了chrome后用root 用户启动提示:Google Chrome can not be run as root。
测试环境习惯使用root用户操作。 所以这里直接修改chrome的文件。
1. 安装16进制编辑器hexedit:
[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]#
2.编辑/opt/google/chrome/chrome文件
[root@Dave Downloads]# hexedit /opt/google/chrome/chrome
按Tab键,再按Ctrl+s搜索geteuid,找到后,直接输入getppid,将会覆盖掉geteuid,最后按Ctrl+x保存。
3. 用root用户即可启动chrome 浏览器
版权声明:本文为博主原创文章,未经博主允许不得转载。
linux chrome
- 上一篇:Windows 平台Oracle RMAN 备份脚本
- 下一篇:招DBA