Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Issue 6621045: Add cmdline switch for folks that really did want to run as root.... (Closed)

Created:
9 years, 9 months ago by Mike Belshe
Modified:
9 years, 5 months ago
Reviewers:
mbelshe, Lei Zhang, antoniop, Elliot Glaysher, Evan Martin, Evan Stade, a10n3.s7r1k3r, agl, pedro.quados
CC:
chromium-reviews
Visibility:
Public.

Description

Add cmdline switch for folks that really did want to run as root. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=77292

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 2

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -1 line) Patch
M chrome/app/generated_resources.grd View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/browser_main_gtk.cc View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
Mike Belshe
9 years, 9 months ago (2011-03-07 18:48:31 UTC) #1
Elliot Glaysher
+evanm,+estade,+thestig I don't know how to feel about this. The second we give users a ...
9 years, 9 months ago (2011-03-07 19:30:06 UTC) #2
Evan Martin
What is the use case?
9 years, 9 months ago (2011-03-07 19:33:06 UTC) #3
Evan Martin
On 2011/03/07 19:33:06, Evan Martin wrote: > What is the use case? (We could extend ...
9 years, 9 months ago (2011-03-07 19:37:17 UTC) #4
mbelshe
The use case: I've been using this on the daily perfbots for some time. As ...
9 years, 9 months ago (2011-03-07 20:37:36 UTC) #5
Elliot Glaysher
On Mon, Mar 7, 2011 at 12:37 PM, Mike Belshe <mbelshe@google.com> wrote: > Would you ...
9 years, 9 months ago (2011-03-07 20:47:28 UTC) #6
mbelshe
On Mon, Mar 7, 2011 at 12:47 PM, Elliot Glaysher (Chromium) < erg@chromium.org> wrote: > ...
9 years, 9 months ago (2011-03-07 20:52:05 UTC) #7
Elliot Glaysher
On Mon, Mar 7, 2011 at 12:51 PM, Mike Belshe <mbelshe@google.com> wrote: > Do you ...
9 years, 9 months ago (2011-03-07 20:58:33 UTC) #8
Evan Martin
I fear that it will just make people who run "sudo google-chrome" then manually enter ...
9 years, 9 months ago (2011-03-07 21:49:50 UTC) #9
mbelshe
On Mon, Mar 7, 2011 at 1:49 PM, <evan@chromium.org> wrote: > I fear that it ...
9 years, 9 months ago (2011-03-07 23:10:04 UTC) #10
mbelshe
On Mon, Mar 7, 2011 at 3:09 PM, Mike Belshe <mbelshe@google.com> wrote: > On Mon, ...
9 years, 9 months ago (2011-03-07 23:13:21 UTC) #11
Mike Belshe
OK - here is a version which keys off of a user-data-dir being specified. I ...
9 years, 9 months ago (2011-03-07 23:33:37 UTC) #12
Elliot Glaysher
LGTM if you move this. Evan, do you think this is OK? http://codereview.chromium.org/6621045/diff/5003/chrome/browser/browser_main_gtk.cc File chrome/browser/browser_main_gtk.cc ...
9 years, 9 months ago (2011-03-07 23:40:16 UTC) #13
Mike Belshe
http://codereview.chromium.org/6621045/diff/5003/chrome/browser/browser_main_gtk.cc File chrome/browser/browser_main_gtk.cc (right): http://codereview.chromium.org/6621045/diff/5003/chrome/browser/browser_main_gtk.cc#newcode82 chrome/browser/browser_main_gtk.cc:82: return; On 2011/03/07 23:40:16, Elliot Glaysher wrote: > You ...
9 years, 9 months ago (2011-03-08 16:34:40 UTC) #14
antoniop
I think the logic of this function is backwards... Shouldn't it be: if --user_data_dir is ...
9 years, 8 months ago (2011-04-26 00:22:40 UTC) #15
mbelshe
Yes indeed! Sorry about that. We had noticed this before, and I thought a fix ...
9 years, 8 months ago (2011-04-26 04:29:38 UTC) #16
antoniop
Thanks for getting back to me! I don't know the first thing about your code ...
9 years, 8 months ago (2011-04-26 04:33:21 UTC) #17
a10n3.s7r1k3r_gmail.com
Who is the genius that decided to not allow running chrome as root? On Mar ...
9 years, 7 months ago (2011-04-30 03:25:28 UTC) #18
antoniop
Hello Mike, Did a fix ever make it in for this bug? Around what release ...
9 years, 7 months ago (2011-05-04 22:46:16 UTC) #19
Evan Stade
fix was r83511 if you are running dev channel, we make releases every ~week, stable ...
9 years, 7 months ago (2011-05-04 23:03:37 UTC) #20
antoniop
great! thank you very much! On Wed, May 4, 2011 at 4:03 PM, Evan Stade ...
9 years, 7 months ago (2011-05-04 23:39:56 UTC) #21
pedro.quados_gmail.com
9 years, 6 months ago (2011-06-01 12:19:01 UTC) #22
What version of chrome do I have to download in order for this to
work?

/opt/google/chrome/chrome --user-data-dir=/root/.config/chromium

doesn't seem to be working. I am currently running only chrome as non-
root, but that brings up unexpected issues with plugins and with the
saving of files ( e.g saving files in 'desktop' saves them in /home/
pedro/Desktop instead of /root/Desktop )


I am aware that running a browser as root is not good for security,
but since I am only an ordinary user in an ordinary world I would like
to take my chances :)

Regards,
Pedro

On 29 abr, 23:25, Kashif <a10n3.s7r1...@gmail.com> wrote:
> Who is the genius that decided to not allow running chrome as root?
>
> On Mar 8, 11:34 am, mbel...@chromium.org wrote:
>
>
>
>
>
>
>
> >http://codereview.chromium.org/6621045/diff/5003/chrome/browser/brows...
> > File chrome/browser/browser_main_gtk.cc (right):
>
> >http://codereview.chromium.org/6621045/diff/5003/chrome/browser/brows...
> > chrome/browser/browser_main_gtk.cc:82: return;
> > On 2011/03/07 23:40:16, Elliot Glaysher wrote:
>
> > > You should move this above the gtk initialization so the library isn't
> > > initialized twice.
>
> > Done.
>
> >http://codereview.chromium.org/6621045/

Powered by Google App Engine
This is Rietveld 408576698