LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-13-2011, 07:16 AM   #1
markluocanada
Member
 
Registered: Dec 2006
Location: Shanghai China
Distribution: Slackware 13.1_x86_32
Posts: 143

Rep: Reputation: 17
how run google chrome as root?


Hi,

I always run my slackware as root, but google chrome won't allow me to do this.

Is there some way to work it around?
I will still prefer to run as 'root'
I can't download the beta version, which I heard had this fixed.

Thanks

btw, I am using XFCE as windows manager.
mark

Last edited by markluocanada; 05-13-2011 at 07:18 AM. Reason: XFCE
 
Old 05-13-2011, 07:30 AM   #2
solarfields
Senior Member
 
Registered: Feb 2006
Location: slackalaxy.com
Distribution: Slackware, CRUX
Posts: 1,449

Rep: Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997
any specific reason to run your desktop as root?
 
Old 05-13-2011, 07:35 AM   #3
Ramurd
Member
 
Registered: Mar 2009
Location: Rotterdam, the Netherlands
Distribution: Slackwarelinux
Posts: 703

Rep: Reputation: 111Reputation: 111
desktop to run as root, run a browser as root...

Think deeply, and try to give any valid reason to do so? I'll give you a few reasons for each of yours not to.

Think even more, and try to come up with a reason why google chrome will not let you run it as root.
 
Old 05-13-2011, 07:41 AM   #4
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Debian, Slackware
Posts: 7,342

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
If possible I think it is best to avoid running your unit as root. It is better to run your unit as a regular user and give that regular user root privileges as needed.
Just my .
 
Old 05-13-2011, 08:05 AM   #5
markluocanada
Member
 
Registered: Dec 2006
Location: Shanghai China
Distribution: Slackware 13.1_x86_32
Posts: 143

Original Poster
Rep: Reputation: 17
thanks guys, I will give it a try,

hitest, how to give that regular user root privileges? I normally skip this part, in terms of my slackware reading, as I thought I would use root forever.
 
Old 05-13-2011, 08:12 AM   #6
solarfields
Senior Member
 
Registered: Feb 2006
Location: slackalaxy.com
Distribution: Slackware, CRUX
Posts: 1,449

Rep: Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997
create your regular user with

adduser

and follow the questions. then to gain root privileges just type

su

and enter root's password
 
Old 05-13-2011, 08:15 AM   #7
SL00b
Member
 
Registered: Feb 2011
Location: LA, US
Distribution: SLES
Posts: 375

Rep: Reputation: 112Reputation: 112
Is this being done as a security test to see how much malware a Linux/Chrome combination can contract by normal browsing?

Just make sure you isolate the rest of your network from this box.
 
Old 05-13-2011, 08:32 AM   #8
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Debian, Slackware
Posts: 7,342

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
Quote:
Originally Posted by markluocanada View Post

hitest, how to give that regular user root privileges? I normally skip this part, in terms of my slackware reading, as I thought I would use root forever.
As previously mentioned you would first create a new user with the adduser command. Then at a shell prompt when root privileges are needed type su then your root password.
 
Old 05-13-2011, 09:01 AM   #9
markluocanada
Member
 
Registered: Dec 2006
Location: Shanghai China
Distribution: Slackware 13.1_x86_32
Posts: 143

Original Poster
Rep: Reputation: 17
Thanks guys, I just created one user, and I can use Chrome now. But font in this user account doesn't look as good as that of root.

I will play it around, if I can not make the font better, then I might have to get back to root again.

mark
 
Old 05-13-2011, 09:44 AM   #10
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762
Slightly off topic but I thought I would test this just to see if they really did stop you running as root. Yes it is a really bad idea but at the same time I don't really agree with software preventing you doing these types of things. Anyway, I could run Chrome (version 10.0.648.205) as root without issues. So if it wouldn't start perhaps it is another issue rather than Chrome actively trying to stop you running as root.

P.S. All that said, I agree with the others. Don't run as root!
 
Old 05-14-2011, 05:29 AM   #11
markluocanada
Member
 
Registered: Dec 2006
Location: Shanghai China
Distribution: Slackware 13.1_x86_32
Posts: 143

Original Poster
Rep: Reputation: 17
Thanks ruario,
Exactly, Chrome shouldn't prevent me running as root, I chose linux, hoping to have more freedom.
Don't want to start a fight, just my 2 cents.
 
Old 05-24-2011, 01:06 PM   #12
h3lder
LQ Newbie
 
Registered: May 2011
Posts: 1

Rep: Reputation: Disabled
Thumbs down

Quote:
Originally Posted by markluocanada View Post
Thanks ruario,
Exactly, Chrome shouldn't prevent me running as root, I chose linux, hoping to have more freedom.
Don't want to start a fight, just my 2 cents.
This is just Google acting stupid.
"What a brilliant idea: Users are all stupid so let's prevent them from having options. We (Google) know better."
Well, we users do have options, we can choose another browser.
 
0 members found this post helpful.
Old 05-24-2011, 02:16 PM   #13
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762
@h3lder: Even though I Opera employee (and hence I have a vested interest to get you to try our browser ) to be fair to Google, in my own tests (as I mentioned above), I saw no evidence that they do this. I was able to run Chrome as root no problem. Have you seen differently?
 
Old 05-26-2011, 07:14 PM   #14
Junior Satheler
LQ Newbie
 
Registered: May 2011
Posts: 1

Rep: Reputation: Disabled
Smile how run google chrome as root?

try this as root :
make a file => /<installed folder>/chrome/chrome.sh

#!/bin/bash
xhost +
su -l junior /opt/google/chrome/google-chrome
xhost -

make a launcher on your desktop
good lock and enjoy !
 
Old 05-27-2011, 08:14 AM   #15
markluocanada
Member
 
Registered: Dec 2006
Location: Shanghai China
Distribution: Slackware 13.1_x86_32
Posts: 143

Original Poster
Rep: Reputation: 17
Junior Satheler, thanks, I would definitely give it a try later.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] My Chromium (not google chrome) browser closes after launching but not when 'root' Robert.Thompson Slackware 9 02-23-2011 03:57 PM
Google Chrome New Tab Page (!)= Chrome OS Desktop Kenny_Strawn Linux - General 6 02-19-2011 05:36 PM
LXer: As Goes Chrome OS, So Goes Google's Chrome Browser LXer Syndicated Linux News 4 10-09-2010 03:18 PM
LXer: Google Chrome Automatically Installs Google Repository in Ubuntu LXer Syndicated Linux News 3 05-07-2010 11:20 AM
LXer: 4 Percent of My Site Visitors Run Google Chrome Web Browser LXer Syndicated Linux News 0 09-10-2008 03:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration