PDA

View Full Version : installing chromium and launching it as root



oliv66
2013-03-15, 16:24
Hi all,

As you know it, chromium cannot be launched as root by default.

In the past (under BT5R3), i used the following command :

hexedit /pathtochromium and I replaced geteuid by getppid.

It doesn't work anymore.

The workaround I am using is : chromium --user-data-dir. It works

How could I launch Chromium as root permanently?

Thanks for your help.

Olivier

muts
2013-03-16, 01:07
Could you please submit this as a bug report @ http://bugs.kali.org (http://bugs.kali.org/) with more debugging information if possible.

Thanks.

brav0hax
2013-03-16, 07:06
bug report completed -> http://bugs.kali.org/view.php?id=81

In the mean time the work around is to add the --user-data-dir flag to the default file (/etc/chromium/default)

Confirmed if works fine.

Don
2013-03-16, 12:47
Please do you mind expanding on how to do this like your other tutorials? I guess it'll be of help to some other newbies like me :)

oliv66
2013-03-16, 13:11
thanks brav0hax

I was using chromium --user-data-dir directly in cli.

I added it to /etc/chromium/defaut and it works perfectly.

linccracker
2013-03-16, 14:53
hexedit /usr/lib/chromium/chromium
tab
ctrl+s geteuid change to getppid
ctrl+x Y

brav0hax
2013-03-16, 20:09
Please do you mind expanding on how to do this like your other tutorials? I guess it'll be of help to some other newbies like me :)

Don,

here are the steps...

open terminal and issue the following command


nano /etc/chromium/default

You will see a line in the file call CHROMIUM_FLAGS=" "

Within the quotes enter the following --user-data-dir
18

Then press Ctrl-x (to exit nano)
Then press y (to save your changes)

Next time you launch Chromium you should not have an issue.

Don
2013-03-18, 23:44
Thanks braxOhax. It works like a charm;)

hashbang
2013-07-29, 18:58
NICE! I need to have ten more chars.

sahmada
2013-11-26, 20:32
hexedit /usr/lib/chromium/chromium
tab
ctrl+s geteuid change to getppid
ctrl+x Y

It works like a charm ;)

aldobelus
2014-02-12, 15:50
Perfectly clear! Thank you. The image is perfect to understand it, please, don't let it desappear :D

kalimba
2014-05-10, 13:50
thanks XD this forum its very good :)

beshkanweb
2015-03-24, 21:47
Very Good :)

mr.redsnake
2015-10-19, 14:29
thank you :)

karencho
2016-04-26, 09:07
Hello,i have installed Chromium browser (apt-get install chromium) ,but browser not launching...there is no error or something just dont launching at all,what i should do?

karencho
2016-05-08, 18:28
hexedit /usr/lib/chromium/chromium
tab
ctrl+s geteuid change to getppid
ctrl+x Y

hello ,hexedit is giving an error "file is read only" how to fix it?

TheUnknown
2017-01-14, 10:12
I tried the way with the Hexedit but it still wont run on my system. As I tried in console there were the following output:


[1:1:0114/111044:FATAL:sandbox_linux.cc(180)] Check failed: sandbox::Credentials::MoveToNewUserNS().
#0 0x56454d61270e <unknown>
#1 0x56454d62b03e <unknown>
#2 0x56454bed2720 <unknown>
#3 0x56454ca5f510 <unknown>
#4 0x56454d2591a7 <unknown>
#5 0x56454d2598a8 <unknown>
#6 0x56454d257aa9 <unknown>
#7 0x56454bdd65bc ChromeMain
#8 0x7f9415478700 __libc_start_main
#9 0x56454bdd646a _start

Received signal 6
#0 0x56454d61270e <unknown>
#1 0x56454d612ac9 <unknown>
#2 0x7f942010eeb0 <unknown>
#3 0x7f941548b198 gsignal
#4 0x7f941548c61a abort
#5 0x56454d612285 <unknown>
#6 0x56454d62b1dd <unknown>
#7 0x56454bed2720 <unknown>
#8 0x56454ca5f510 <unknown>
#9 0x56454d2591a7 <unknown>
#10 0x56454d2598a8 <unknown>
#11 0x56454d257aa9 <unknown>
#12 0x56454bdd65bc ChromeMain
#13 0x7f9415478700 __libc_start_main
#14 0x56454bdd646a _start
r8: ffffad63acc6c030 r9: ffffad63acc6c020 r10: 0000000000000008 r11: 0000000000000202
r12: 00007ffd5b53dc30 r13: 00007ffd5b53e0b8 r14: 00007ffd5b53dbe0 r15: 0000000000000000
di: 0000000000000001 si: 0000000000000001 bp: 00007ffd5b53dbd0 bx: 00007ffd5b53e0b0
dx: 0000000000000006 ax: 0000000000000000 cx: 00007f941548b198 sp: 00007ffd5b53d878
ip: 00007f941548b198 efl: 0000000000000202 cgf: 002b000000000033 erf: 0000000000000000
trp: 0000000000000000 msk: 0000000000000000 cr2: 0000000000000000
[end of stack trace]
[2543:2543:0114/111044:FATAL:zygote_host_impl_linux.cc(196)] Check failed: ReceiveFixedMessage(fds[0], kZygoteHelloMessage, sizeof(kZygoteHelloMessage), &real_pid).
#0 0x55626302570e <unknown>
#1 0x55626303e03e <unknown>
#2 0x556262845ac3 <unknown>
#3 0x556262844994 <unknown>
#4 0x556262844f5e <unknown>
#5 0x5562624e7ca1 <unknown>
#6 0x5562624eac31 <unknown>
#7 0x5562624e32a4 <unknown>
#8 0x556262c6c8a8 <unknown>
#9 0x556262c6aaa9 <unknown>
#10 0x5562617e95bc ChromeMain
#11 0x7f96f6b0b700 __libc_start_main
#12 0x5562617e946a _start

Abgebrochen


It is a fresh installation without any mods.

danijov
2017-01-17, 10:56
This works for me open up the terminal type "vim /usr/share/applications/chromium.desktop" (without quotes)
Go to line 131. "Exec=/usr/bin/chromium %U" and add with space after the %U "--no-sandbox" save and quit. (Exec=/usr/bin/chromium %U --no-sandbox)

Again on the terminal type "vim /etc/chromium.d/default-flags" on line 2 add "CHROMIUM_FLAGS="--user-data-dir" save and quit (case sensetive and dont forget to add the quotes after the = and after dir. (CHROMIUM_FLAGS="--user-data-dir")

TheUnknown
2017-01-17, 11:18
Thanks!
That works perfectly well. But I don't understand the solution in all terms. The first is clear. Switching off the sandbox-thingy. But the second one, "user-data-dir". What does it?