Jump to content

firefox autoupdate


coverup
 Share

Recommended Posts

Out of curiousity, I let firefox update itself automatically. The update went seemlessly, which first surprised me a lot. But then I checked permissions, and it turned out that the whole bundle had user read/write permissions. I can see why - when I unstalled firefox for the first time, I used the tarball from mozilla, uncompressed it in my home directory, then, as root, moved the whole firefox directory to /usr/local/. Aparently, permissions did not change.

 

I am not comfortable with having loads of user editable files in/usr/local/. My question is, if I make the firefox directory owned by root, will the autoupdate continue to work?

Link to comment
Share on other sites

coverup:

 

When I installed firefox I downloaded the 1.5.07 tarball and uncompressed it in my home directory. Then, as root, moved the whole firefox directory to /opt.

 

I did not select the automatic update option, and I have never used it in the past.

 

When I check permissions of various folders and files in the directory firefox, root is the owner for all. :huh2:

 

I did run firefox as root the very first time it was started as instructed by a google search. I recall getting a chrome related warning message if I didn't (this was a long time ago).

Edited by daniewicz
Link to comment
Share on other sites

Thanks guys,

 

I usually follow the same procedure as described by daniewicz except for putting firefox directory in /usr/local/.... There are no particular reason for that.

 

As for permissions, I still have copies of 1.0.7, 1.5.0.1 and 1.5.0.7 in my archive, 1.0.7 stuff is owned by root, and the newer ones 1.5.0.1 and 1.5.0.7 (which was updated from the original 1.5.0.6) are owned by user. I will need to see why this has happened.

Link to comment
Share on other sites

I always put in /usr/local/mozilla/firefox. My updates work also.

 

How did you uncompress? As your normal user? Maybe this is why you can overwrite, even though you moved the files as root, the files still belong to you.

 

My files also belong to my username. I used:

 

ls -l /usr/local/mozilla/firefox

 

to see who owned them. If root owned them, might make it difficult for the normal user to update.

Link to comment
Share on other sites

Yes, I am pretty shure I uncompressed FF as user, and then moved the directory as root. I have done a quick test - moving files as root does not change the owner, so that explains why I own the FF files.

 

I am now certain that the whole premise of autoupdates is a flaw, and won't allow updates anymore. My message to everybody who put the FF outside of the home dir - change the file permissions and forget about automatic updates

Link to comment
Share on other sites

Pretty sure the norm is:

 

distro-packaged binaries>> /usr

 

upstream sources/binaries>> /opt

/opt:

/opt is reserved for the installation of add-on application software packages.

 

A package to be installed in /opt must locate its static files in a separate /opt/<package> or /opt/<provider> directory tree, where <package> is a name that describes the software package and <provider> is the provider's LANANA registered name.

this can include distro-packaged binaries, as well as "upstream" or "third party"

 

/usr/bin:

This is the primary directory of executable commands on the system.
/usr/bin/ should really only include executable commands, not file data. it's best to put packages (with all associated data and such) in /opt/programname and then link the executable on /usr/bin, IMHE [in my humble experience]. unless of course the program is just an executable (references system libs that would be in /usr/lib, no program-specific data), in which case sticking it into /usr/bin would be fine.
Link to comment
Share on other sites

Pretty sure the norm is:

 

distro-packaged binaries>> /usr

 

upstream sources/binaries>> /opt

The majority of the third party software which come as tarballs or .tgz install to /usr/local/ and put executables or symlinks to usr/local/bin. Few years back when I used firefox for the first time, it came with installer which did exactly that. In fact only software which installs to /opt that I know of are Adobe Reader, Crossover Office, Picasa and Grisoft Antivirus.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...