Use Google chrome as root

How to use google chrome/chromium as root in suse 11.4
Google chrome 18 rpm package installed using rpm -ivh
working fine in user account. but needed to use in root anyhow.

giving the error msg create new --user-data-dir

No. It can not be that you need to use a web browser as root. chromium doesn’t allow it. That’s right.

Why would you want to do that? Especially with a web browser?

Its a desktop and i want to test my php pages in chromium also. only testing with mozilla doesnot workout. how to do it? if anyone knew it pls reply.

Its a desktop with pentim 4 processor i386 and 2GB of ram and suse 11.4 kde version is installed.

in ubuntu 11.10 i have tried as root. after some modifications it worked out. but not happening in suse

The proper way to do that is to install a web server. Google or forum search for LAMP or Apache.

U r really irritating dude. sorry for the words. i am asking one thing and u r mentioning another thing. if u dont know then pass the thread to other.

if u r replying or not. i am going to do it any how. and this is open source and i know the risk of using a browser as root

On 12/29/2011 01:16 PM, luk4abinash wrote:
>
> in ubuntu 11.10 i have tried as root. after some modifications it worked
> out. but not happening in suse

wait a second: do NOT use any browser as root ever. what are you trying
to do when you “test my php pages”

you should not be testing your php pages in a root powered firefox,
opera, konqueror, chromium or any other!!

what are you trying to test that can not be done with a browser launched
by a normal user…

describe exactly what you are trying to test which requires a root
powered browser, please.


DD http://tinyurl.com/DD-Caveat
openSUSE®, the “German Engineered Automobiles” of operating systems!

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

If you know the risk of using a browser as root then it would help if
you stated as much. The first replies received were basically asking
“why” you would want to do something foolish.

There may be a reason, even a valid reason, but since you have not
provided it, and since this thread will be read by others who may not
have your experience, the only responsible thing for anybody else to do
is to inform you, operating under the belief that you are doing this for
no legitimate reason, that you are making a mistake (which is true
unless you have a very good reason to do otherwise). Doing otherwise
could lead those who follow you, and who find this thread, to mistakenly
believe that it is okay to run things (especially browsers) as root.

Good luck.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJO/GgmAAoJEF+XTK08PnB5WFEP/0KB+tDoDvJzLHHfhsuKBXyq
BHSYhi+Ye1NaxBHE+nKDZStZdu2aOe8cgog90IKgAul1e9sKdPDqvT9JragraSNl
rfz9THge6dYzjrizMUdc/kwTo6XD7YhgoQc39lTHykn0eBh20vYZPGoAsfcMSyuf
pwS2YgzUj3URJkomR9uVcx51JybXqllnf8ZUDMAsLkeAkMz66p7jxrLS0nDHOMRB
kM4QuSFoqvZPhU9so8niLF2pIPH7RVl8ZWZoRCw5KqjKaakEU5yY8yuQKTK/pg54
qCqBCacdXhMFQagtsGMJfCZATM4RkQOTov0xNkOFaDiMl9QUXbhM7mdtBzs3Xrnx
Sh/S5k3/y+7YPHZpnNVgjx1WLYmCk4oXcK9AWlZ9eFVYbx/YWQswCUwV/22bt2DH
yRJt052nTV7gfxhkY62myW+uv6T3tbdkF8yG2Ax/W7dgIyAkAcF6l6L4K1cVNZdZ
0410/m2/bv+2R0rKTn5aTajUIWwcUrx8NmbuopyoSAavd0vBFnlsMav/4+jNm4IZ
/+70hJUDAwgigE58gN3qDQn0lFtOb6eScuE+H6WbgJ26MpSPSRRywyOfPli+NnFG
p9TJRs7RUzklZUKqQ+e8Lc5LxFrUHCPkcY1GnYMWlpVhOGxt9lCHnM2Q+JjX47ko
4wMV8cCFq0IsShHFH5CK
=TtMs
-----END PGP SIGNATURE-----

Could you please use plain english rather than slang in the forum - even if you disagree with the advice you receive (which is perfectly right)?
Take it easy though!

I hope the above two posts are clear enough. As a mod of these forums, I like to add that the fact that you appoligise in the same sentence where you you use denigrating terms does not mean that you are allowed those terms. You then better do not post them and it spares you the appologising.

A statement: there is no reason to use any browser as root to test php files, or whatever web pages. Apart from it being unwise, the browser code may even give you results nobody can work with. In another setting I would have been tempted to write a little lecture on this statement, but since you already wrote you’re not going to listen to it…

i understand you [edited]. but if we can use mozilla as root then why not chrome. there must be some procedure. I want to know the procedure. thats all

Have you considered the possibility that the Chrome developers had suicidal id^H^Husers like you in mind and put in a check so that Chrome will not run as root? Well whatever the reason, you can expect no help from me, speaking for myself.

On Fri, 30 Dec 2011 09:36:02 +0530, luk4abinash
<luk4abinash@no-mx.forums.opensuse.org> wrote:

>
> i understand u dude. but if we can use mozilla as root then why not
> chrome. there must be some procedure. I want to know the procedure.
> thats all
>

you can use anything as root, “dude,” but it’s plain stupid. i see no
point helping you to be stupid. and you didn’t convince anybody yet that
there’s a non-stupid reason for this.


phani.

ok thank u

On Fri, 30 Dec 2011 10:46:02 +0530, luk4abinash
<luk4abinash@no-mx.forums.opensuse.org> wrote:

>
> ok thank u
>

my previous post sounded a bit harsh i think, that wasn’t my intention
(just read it again).

thing is, i don’t know off the top of my head how to run chrome or
chromium as root. perhaps it’s blocked directly by the browser, in which
case you’d have to go into it’s configuration files, or even re-compile
it. it’s also possible that it’s prevented by openSUSE security policies;
in that case, those would have to be changed.

i’m sure i could get chrome to run as root, eventually, but that’s
something i definitely don’t want to do. not only because it would leave
me vulnerable while browsing the net. this could easily be controlled by
not connecting to the internet while running the browser as root.

what can’t easily be controlled is the fact that any file the browser
touches as root is likely to be useless for a normal user afterwards.
files created by root, or an application running as root, and even those
changed by such a process, end up with root permissions, not accessible
for regular users anymore.

this has the potential, or even is very likely, to mess up my system to
the point where it would take hours or a new installation to fix
everything. i’m not going to do that for something i don’t see any reason
for.

to get the browser to execute php files does not require it to run as
root. if this happens to you, your web server, without which php can not
be executed in a browser at all, isn’t configured correctly.

i’d be happy to help you to configure your web browser properly, and then
there won’t be any need to run a browser as root. i’m not going to waste
time trying to figure out how to mess up your (or my) system.


phani.

On Fri, 30 Dec 2011 11:07:07 +0530, phanisvara das
<listmail@phanisvara.com> wrote:

> i’d be happy to help you to configure your web browser properly, …

sorry, “web server” i meant to say.


phani.