Results 1 to 19 of 19

Thread: installing chromium and launching it as root

  1. #1
    Join Date
    2013-Mar
    Posts
    9

    installing chromium and launching it as root

    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

  2. #2
    Could you please submit this as a bug report @ http://bugs.kali.org with more debugging information if possible.

    Thanks.

  3. #3
    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.

  4. #4
    Join Date
    2013-Mar
    Posts
    2
    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

  5. #5
    Join Date
    2013-Mar
    Posts
    9
    thanks brav0hax

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

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

  6. #6
    Join Date
    2013-Mar
    Posts
    6
    hexedit /usr/lib/chromium/chromium
    tab
    ctrl+s geteuid change to getppid
    ctrl+x Y

  7. #7
    Quote Originally Posted by Don View Post
    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

    Code:
    nano /etc/chromium/default
    You will see a line in the file call CHROMIUM_FLAGS=" "

    Within the quotes enter the following --user-data-dir
    chromium-root-fix.jpeg

    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.

  8. #8
    Join Date
    2013-Mar
    Posts
    2
    Thanks braxOhax. It works like a charm

  9. #9
    Join Date
    2013-Jun
    Posts
    1
    NICE! I need to have ten more chars.

  10. #10
    Join Date
    2013-Apr
    Posts
    1

    It is the best solution

    Quote Originally Posted by linccracker View Post
    hexedit /usr/lib/chromium/chromium
    tab
    ctrl+s geteuid change to getppid
    ctrl+x Y
    It works like a charm

  11. #11
    Join Date
    2014-Feb
    Posts
    2

    Thank you!

    Perfectly clear! Thank you. The image is perfect to understand it, please, don't let it desappear

  12. #12
    Join Date
    2014-May
    Posts
    1
    thanks XD this forum its very good

  13. #13
    Join Date
    2015-Mar
    Posts
    1
    Very Good

  14. #14
    Join Date
    2015-Oct
    Posts
    3
    thank you

  15. #15
    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?

  16. #16
    Quote Originally Posted by linccracker View Post
    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?

  17. #17
    Join Date
    2016-Jan
    Posts
    7
    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:

    PHP Code:
    [1:1:0114/111044:FATAL:sandbox_linux.cc(180)] Check failedsandbox::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
      
    r8ffffad63acc6c030  r9ffffad63acc6c020 r10: 0000000000000008 r110000000000000202
     r12
    00007ffd5b53dc30 r1300007ffd5b53e0b8 r1400007ffd5b53dbe0 r150000000000000000
      di
    0000000000000001  si0000000000000001  bp00007ffd5b53dbd0  bx00007ffd5b53e0b0
      dx
    0000000000000006  ax0000000000000000  cx00007f941548b198  sp00007ffd5b53d878
      ip
    00007f941548b198 efl0000000000000202 cgf002b000000000033 erf0000000000000000
     trp
    0000000000000000 msk0000000000000000 cr20000000000000000
    [end of stack trace]
    [
    2543:2543:0114/111044:FATAL:zygote_host_impl_linux.cc(196)] Check failedReceiveFixedMessage(fds[0], kZygoteHelloMessagesizeof(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.

  18. #18
    Join Date
    2016-Dec
    Posts
    2
    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")
    Last edited by danijov; 2017-01-17 at 11:13. Reason: easier to understand

  19. #19
    Join Date
    2016-Jan
    Posts
    7
    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?

Similar Threads

  1. chromium - separate instance from pre-installed chromium
    By sutak in forum TroubleShooting Archive
    Replies: 0
    Last Post: 2021-11-15, 02:20
  2. Installing Chromium
    By Sw1p3r in forum General Archive
    Replies: 4
    Last Post: 2013-03-25, 13:22

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •