linux 下以 root 身份启动 google chrome

本文介绍了解决Google Chrome浏览器无法以管理员(root)身份运行的方法。通过修改启动器中的命令行参数,添加--user-data-dir选项,使得Chrome能够在Ubuntu、Fedora及CentOS等系统中以root用户身份启动。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >


How to resolve Google Chrome can not be run as root

怎样以管理员身份运行google chrome

原文地址:http://linuxdrops.com/how-to-resolve-google-chrome-can-not-be-run-as-root-ubuntu-fedora-centos/


Right click on the launch icon and select properties.  Append the following to the command in the launcher --user-data-dir
右键点击chrome的桌面图标,根据地址打开文件找到 --user-data-dir

This is what it will look like

内容如下

/opt/google/chrome/google-chrome %U

just change it to be

将它改为

/opt/google/chrome/google-chrome --user-data-dir %U

If you can’t find the launcher then you have to add it to panel or to your desktop. Select Applications-->Internet-->Google Chrome, right click on it and select Add this launcher to panel or Add this launcher to Desktop. Once you find the launcher icons, follow the steps above to run Chrome as a root user.

如果无法找到入口需要将它添加到桌面或者任务栏。选择Applications-->Internet-->Google Chrome,右键点击并选择添加到任务栏或桌面。找到图标后就可以按照上述步骤进行操作。

Cheers

成功


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值