root user use chrome browser tip

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

root user use chrome browser tip

Postby 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: 519
Joined: 2014/05/21 20:16:00
Location: Central New York, USA

Re: root user use chrome browser tip

Postby 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
Forum Moderator
Posts: 20646
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: root user use chrome browser tip

Postby TrevorH » 2017/08/13 14:27:40

We don't even advise logging on as the root user via the GUI...
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke