LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Run First As Root? (https://www.linuxquestions.org/questions/linux-software-2/run-first-as-root-276043/)

Terje 01-10-2005 07:59 AM

Run First As Root?
 
Hello.

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?

Terje

Valindar 01-10-2005 08:13 AM

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?


All times are GMT -5. The time now is 11:40 AM.