root user use chrome browser tip

Issues related to applications and software problems
Post Reply
coolbyj
Posts: 4
Joined: 2015/01/23 23:58:25

root user use chrome browser tip

Post by coolbyj » 2017/08/13 12:00:22

1. vi /usr/bin/google-chrome

2 add " --no-sandbox "

if [[ -n "$CHROME_USER_DATA_DIR" ]]; then
51 # Note: exec -a below is a bashism.
52 exec -a "$0" "$HERE/chrome" \
53 --user-data-dir="$CHROME_USER_DATA_DIR" "$@" --no-sandbox
54 else
55 exec -a "$0" "$HERE/chrome" "$@" --no-sandbox
56 fi

lightman47
Posts: 1522
Joined: 2014/05/21 20:16:00
Location: Central New York, USA

Re: root user use chrome browser tip

Post by lightman47 » 2017/08/13 12:40:32

Why? Running the browser as root is dangerous enough, but turning off the sandbox on top of that? I must be missing something.

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: root user use chrome browser tip

Post by TrevorH » 2017/08/13 14:27:40

We don't even advise logging on as the root user via the GUI...
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply