LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 08-20-2003, 12:27 PM   #1
ejort
LQ Newbie
 
Registered: Aug 2003
Posts: 3

Rep: Reputation: 0
Mozilla 1.4 non-root user


I resently updated to mozilla 1.4, and at first it worked fine as root or my other account. I know because I remember having to go into moz as root to install mouse gestures. But now, when I try to run moz as the non root user, it starts to load then nothing happens. Sometimes it opens the profile selection box, but when I click to start it just goes away. It runs perfectly as root, but I'd rather not run that way. Anyone encountered a similar problem or have any ideas how to get it working again?

Thanks
 
Old 08-20-2003, 03:02 PM   #2
Mega Man X
Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 63
Strange. Looks like a permission problem. Try running in a konsole, so we can see which error messages you are getting. Make sure to also install it at /usr/local, so that every user can have access to it
 
Old 08-20-2003, 06:06 PM   #3
tchernobog
Member
 
Registered: Aug 2003
Distribution: Latest Gentoo; Mandrake 9.1
Posts: 37

Rep: Reputation: 15
Check the permissions of the executable, and also:

To install Mozilla for multiple users on Unix, install as normal, then create the following script in your Mozilla directory, make it executable (chmod u+x <scriptname>), and run it as root. Do not run this program as su[do] root. (Bug 52653)

#!/bin/sh
dist_bin=`dirname $0`
MOZILLA_FIVE_HOME=$dist_bin
LD_LIBRARY_PATH=$dist_bin
export MOZILLA_FIVE_HOME LD_LIBRARY_PATH
$dist_bin/regxpcom
$dist_bin/regchrome
touch $dist_bin/chrome/user-skins.rdf $dist_bin/chrome/user-locales.rdf

You should then be able to run that installation of Mozilla as any user who has permissions to access it.

(From mozilla.org.) Maybe the fact that Mozilla doesn't show is because of the permissions onto the profile's files. Mozilla tries to use the already created profile, but it fails because it's accessible only by root.

You could try also to start mozilla with the "-ProfileManager" option and then create a new profile.
 
Old 08-20-2003, 06:51 PM   #4
ejort
LQ Newbie
 
Registered: Aug 2003
Posts: 3

Original Poster
Rep: Reputation: 0
installation directory

I installed it in /usr/lib/mozilla-1.4 and got rid of /usr/lib/mozilla-1.3 that was originally there. Is there a problem with having it there? It seemed to work before, so I'm leaning toward a problem with the profiles. Perhaps it's trying to use one it doesn't have permission for? As for running from the command line, I get no errors. From the terminal you wouldn't know anything was wrong. It pops up a thing in the taskbar, and a hourglass spins for a bit, then the takbar thing goes away and...nothing. I tried the script for multiusers from mozilla.org, and that didn't seem to fix anything. I guess I'll take another look at the profiles issue when I go in tomorrow.

Thanks
 
Old 08-20-2003, 07:42 PM   #5
andrewlkho
Member
 
Registered: Jul 2003
Location: London
Posts: 548

Rep: Reputation: 30
well I'm not sure about this multiuser script that I see from tchernobog. Personally, what I do after running the mozilla installation is to do:

$ ln -s /usr/local/mozilla/mozilla /usr/bin/mozilla
$ chmod u+x /usr/bin/mozilla

and that allows all users to run the command "mozilla" and get mozilla up and running
 
Old 08-21-2003, 03:07 PM   #6
ejort
LQ Newbie
 
Registered: Aug 2003
Posts: 3

Original Poster
Rep: Reputation: 0
Thumbs up got it

After uninstalling mozilla, and reinstalling it i figured out the problem as I was setting things up again. I'd installed the xpi addon for mouse gestures. That's what broke it. After lookin at the mozdev mouse gestures FAQ http://optimoz.mozdev.org/gestures/faqs.html
I just went in mozilla/chrome/mozgest and did chmod -R 755 *
Now my non-root user works fine.
 
Old 10-15-2003, 11:45 AM   #7
justinsleary
LQ Newbie
 
Registered: Sep 2003
Location: Australia
Distribution: RedHat 9
Posts: 10

Rep: Reputation: 0
ho_10,

I have a newbie question on your (good) suggestion.

You said:
"....
$ ln -s /usr/local/mozilla/mozilla /usr/bin/mozilla
$ chmod u+x /usr/bin/mozilla
...."
However, I am missing some info - I can't create a symbolic link from /usr/local/mozilla/mozilla to /usr/bin/mozilla because, while I have /usr/bin/mozilla I don't have the /usr/local/mozilla/mozilla path... is there a way, when installing mozilla, to have it set up this local machine part? If so, how do I do that? Drawing on my Windows experience, do we just create the local path, and then a file, any file, and symlink it to the /usr/bin/mozilla file? Then point our mozilla icon to the symlink? Or have I missed the essence? Does doing this latter enable any user, because the link is now in the /usr/local/../.. path, to run mozilla?

Also, I understand that the chmod command is to enable execute permission for the logged in user on the mozilla executable... mine always had (and does have) the rwx permission for user level.

Can you shed some more light on this, particularly the install/symbolic link question?
(bear in mind I am a humble newbie)

Thanks

Justin
 
  


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
CUPS Cannot print in mozilla non-root (can as root)? mismacku Linux - Software 0 08-26-2004 03:07 AM
IntelliMouse thumb buttons work as root, broken as non-root user, wheel works always digital vortex Linux - Hardware 7 03-02-2004 04:14 PM
root=mozilla runs, user=no worky the_tflk Linux - Software 5 07-13-2003 04:54 AM
Why cant I run Mozilla Browser as Root User LinzyNJ Linux - Software 8 04-05-2003 02:25 AM
mozilla works fine when logged in as a user but crashes when logged in as root jimi Linux - General 6 04-02-2003 08:34 PM


All times are GMT -5. The time now is 10:39 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration