Computing.Net > Forums > Linux > Mozilla only runs as root user

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Mozilla only runs as root user

Reply to Message Icon

Name: steveblack43
Date: February 16, 2005 at 04:45:12 Pacific
OS: mandrake 10.1
CPU/Ram: xp2200 512
Comment:

I have a fresh install of Mandrake 10.1 but
Mozilla and Firefox will only run from a
Konsile as root..
Konqueror is fine from a "normal" user
Any ideas?
Thanks



Sponsored Link
Ads by Google

Response Number 1
Name: bookn2
Date: February 18, 2005 at 14:13:27 Pacific
Reply:

Odd it works for me :)

Lets try permissions on the binary files first.
I'll assume that you've installed the browsers from the Mandrake distribution so Mozilla is launched with mozilla and that Firefox is launched with mozilla-firefox. Note the difference between an apostrophe (') and a backquote (`). The backquote on most UK keyboards is to the left of 1.

Log in as root and at a console:

chmod go=rx `which mozilla`
chmod go=rx `which mozilla-firefox`
chmod -Rv go=rx /usr/libs/mozilla
chmod -Rv go=rx /usr/libs/mozilla-fi<TAB>

Then try running the browsers.

If it still doesn't work, then check the path with the following:

Log in as root and:
which mozilla-firefox
which mozilla

note the paths output by these commands

Now log in as yourself and type:
echo $PATH

If the directory containing mozilla and mozilla-firefox is listed in your own path then all is OK. Otherwise, type the following:

export PATH="$PATH:/path/returned/by/which"

and try again. If that worked, add the above export command to the end of your $HOME/.bashrc file and you should all be set.
A command to do this in one fell swoop is:

echo 'export PATH="$PATH:/path/returned/by/which"' >> ~/.bashrc

(all on one line)
You might need to add this line for each restricted user on the system. Be careful to type everything character for character (substituting /path/returned/by/which obviously) or else you may do more damage than good. Oh where is says /path/returned/by/which, leave off the final /mozilla or /mozilla-firefox at the end.

Hope i've helped.

Nick


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Mozilla only runs as root user

program only run as root www.computing.net/answers/linux/program-only-run-as-root/23504.html

Can only login as ROOT www.computing.net/answers/linux/can-only-login-as-root/27757.html

root access with non root user www.computing.net/answers/linux/root-access-with-non-root-user/25398.html