LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 01-11-2004, 01:03 AM   #1
Crickit
Member
 
Registered: Apr 2003
Location: A whole lot of nowhere.
Distribution: Mandrake 9.1
Posts: 58

Rep: Reputation: 15
Mozilla will only start as root.


I installed Mozilla 1.5 on my Mandrake 9.2 using the mozilla-installer. I installed it as root (which was required I believe).

As soon as the installer completes installation, mozilla opens automaticall and runs fine.

After that, in order to use Mozilla, the README states that I should go to the mozilla install directory (in this case /usr/local/mozilla) and run ./mozilla

When I do that, nothing happens. Nothing at all.

After playing around a little, I found out that if I su to root and then type ./mozilla (from within /usr/local/mozilla), mozilla opens and works fine, just like when I installed it.

Any ideas?

Last edited by Crickit; 01-11-2004 at 01:05 AM.
 
Old 01-11-2004, 01:14 AM   #2
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
check the permissions of the mozilla script command and chmod accordingly. to be safe that the permissions are going to be correct, i'd use:

chmod -R 755 /usr/local/mozilla
 
Old 01-11-2004, 01:22 AM   #3
Crickit
Member
 
Registered: Apr 2003
Location: A whole lot of nowhere.
Distribution: Mandrake 9.1
Posts: 58

Original Poster
Rep: Reputation: 15
Nah, that didn't work.

Before trying that, I deleted everything in the /usr/local/mozilla directory, then changed the ownership and group of the directory to my user account. Then I installed mozilla again without switching to root first. All to no avail. Even when it is installed from my user account, I need to switch to root in order to use it.

Someone please help!
 
Old 01-11-2004, 01:29 AM   #4
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
you said you ran the command in a shell terminal. did you get any error output? if so, post what was output.
 
Old 01-11-2004, 01:34 AM   #5
Crickit
Member
 
Registered: Apr 2003
Location: A whole lot of nowhere.
Distribution: Mandrake 9.1
Posts: 58

Original Poster
Rep: Reputation: 15
No there was no output at all, just:

$ ./mozilla <Enter>
$

Hmm...
 
Old 01-11-2004, 01:40 AM   #6
Crickit
Member
 
Registered: Apr 2003
Location: A whole lot of nowhere.
Distribution: Mandrake 9.1
Posts: 58

Original Poster
Rep: Reputation: 15
I figured it out.

For some reason, the .mozilla directory (for storing all my preferences) was created as root, and needed to be owned by my user account. Easily fixed.

Thanks for your help megaspaz, and I hope this can be used by someone else later.
 
Old 01-11-2004, 01:40 AM   #7
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
what do you get if you use this command?

ls -l /usr/local/mozilla/mozilla*

i basically get this:

-rwxr-xr-x 1 root root 2926 Oct 7 20:49 /usr/local/mozilla/mozilla
-rwxr-xr-x 1 root root 1785484 Oct 7 20:49 /usr/local/mozilla/mozilla-bin
-rwxr-xr-x 1 root root 125806 Oct 7 20:49 /usr/local/mozilla/mozilla-xremote

the first 2 are the important ones, since ./mozilla just calls the mozilla-bin script.

anyway, when running the mozilla script, does the prompt immediately show up in the shell terminal?

Last edited by megaspaz; 01-11-2004 at 01:43 AM.
 
Old 01-11-2004, 12:02 PM   #8
morrolan
Member
 
Registered: Sep 2003
Location: Manchester UK
Posts: 262

Rep: Reputation: 30
Cricket, I have this exact same problem - I can only get mozilla to run as root - where is the .mozilla directory that your preferences are stored in? I take it that you just changed the group to users? I'm quite new to linux and am only just getting to grips with file permissions, and this has been one of my nagging problems!

Thanks
 
Old 01-11-2004, 10:41 PM   #9
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
You install using root login.

The best way to do it would be using this command

su -


Then when you use mozilla as a normal user the user will own their files that will be created.

If you use su instead of su - there coud be a problem.

If you have this problem then as root run this

chown -R david.david /home/david/.mozilla
 
  


Reply


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
mozilla won't start in gnome except for root... mrvikki Linux - Newbie 2 08-31-2004 10:28 PM
CUPS Cannot print in mozilla non-root (can as root)? mismacku Linux - Software 0 08-26-2004 04:07 AM
Problem: Only root can start Mozilla... Baix Slackware 11 07-02-2004 01:25 AM
mozilla 1.6 does not start carboncopy Slackware 8 05-17-2004 06:20 AM
Mozilla 1.6 won't start raysr Linux - Newbie 3 03-22-2004 02:45 PM


All times are GMT -5. The time now is 02:34 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration