Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to create a default mimeTypes.rdf file for all the existing and new users ? So that whenever a user opens the firefox for the very first time, he will get the specified rdf file in his profile @ ~/.mozilla/firefox/*/mimeTypes.rdf

share|improve this question
up vote 2 down vote accepted

If you are creating users with useradd you can file directory /etc/skel to put files and directories in users home directories.

man useradd: The skeleton directory, which contains files and directories to be copied in the users home directory, when the home directory is created by useradd.

So you should create two files:

  • /etc/skel/.mozilla/firefox/PROFILE_NAME/mimeTypes.rdf with content that you need
  • /etc/skel/.mozilla/firefox/profiles.ini with:

    Name=Default User

It should do the work with new users.

share|improve this answer

I found occurrences of /usr/lib/firefox/defaults/profile/mimeTypes.rdf on the web, but I'm not sure it will be used by recent versions of firefox. Might be worth a try!

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.