rpm gives wrong rights to ~/.mozilla [was: Re: mozilla won't start]

Greg Wildman rhlist at itns.co.za
Fri Aug 27 05:56:59 UTC 2004


Joolz said the following on 27/08/2004 05:35:
>>[Robert Crowther schreef op 26-08-2004 20:43 +0100]
>>
>>On Thu, 26 Aug 2004 21:23:42 +0200, Joolz <joolz at xs4all.nl> wrote:
>>
>>>Hi everyone,
>>>
>>>I just removed mozilla-firefox and installed mozilla 1.7.2 from
>>>official FC2 rpms. However, when I run
>>>/usr/lib/mozilla-1.7.2/mozilla-bin I get this error:
>>>/usr/lib/mozilla-1.7.2/mozilla-bin: error while loading shared
>>>libraries: libmozjs.so: cannot open shared object file: No such file
>>>or directory
>>>
>>
>>Try just running 'mozilla', or even '/usr/bin/mozilla' if you haven't
>>got the default paths set up.
> 
> 
> I found it, this was a weird one. I rpm -e 'd the firefox rpm, made a
> backup of my bookmarks file and did rm -rf ~/.mozilla. So far so good.
> 
> Then I did sudo apt-get install mozilla, and that managed to create
> ~/.mozilla owned by root:root. With these faulty right settings
> mozilla won't start and give the erronious errormessage I mentioned
> above. After chown me:me ~/.mozilla everything was OK.
> 
> I'm not sure why this happened, maybe apt-getting with sudo?

Usually happens when you 'su' to root instead of 'su -'. In the former 
case your $HOME env var does not change and still points to your normal 
user.


-- 
Redmond, we have a problem.





More information about the fedora-list mailing list