Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-10-2005, 08:59 AM   #1
Registered: May 2004
Location: My own little world...
Distribution: Slackware
Posts: 54

Rep: Reputation: 16
Question Run First As Root?


I've recently run into, apparently, conflicting info about adding new software to a system. At first I read that one should either su to/login as root to run new software for the first time to be certain of having sufficient permissions for the new program to access whatever it needed during its initial setup. That seems to be the wrong thing to do in some cases, as evidenced by my recent attempt to install Firefox and Thunderbird on the Xandros system I'm test driving.

After installing Firefox and Thunderbird on this system exactly as I did on my Slackware system, I got an error message when I tried to run them as user after having run them as root. Neither program gave me any such trouble under Slackware. A search of the LQ forums led me to a solution that involved turning off X authorization (via "xhost -"), running the affected programs as user, and turning X authorization back on (via "xhost +"). The solution worked, and now both programs are playing nice.

Is there a definitive answer as to when a program should be run first as root before it is run as user, or is it trial and error?

Old 01-10-2005, 09:13 AM   #2
Registered: Jun 2004
Location: Melbourne, Australia
Distribution: Slackware 9.1
Posts: 33

Rep: Reputation: 15
I never run anything as root first... it's usually not a very good idea unless you know what it's going to do.

I run it as a user and if it spews errors at me about permissions, then I correct the problem. If I can't seem to give it the correct permissions I'll install a copy in my home directory.

I've never had any problems whatsoever running a program as a user straight after installing it. Really... what could it need to do as root that it couldn't do in it's install scripts?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Can't run X as root! t-smurf Linux - Software 2 10-04-2005 02:49 PM
I have to ssh -l root to run root processes!? paul.nel Red Hat 3 11-15-2004 12:55 PM
Can only run apache from root? apc Linux - Software 2 07-29-2004 02:35 AM
run as root squi Linux - Newbie 5 09-19-2003 10:31 AM
LimeWire installed as root, can't run if not root sulzla Linux - Newbie 1 07-01-2003 08:48 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:22 PM.

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